LLVM API Documentation

TargetLoweringObjectFile.cpp File Reference

#include "llvm/Target/TargetLoweringObjectFile.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/GlobalVariable.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Support/Mangler.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"

Include dependency graph for TargetLoweringObjectFile.cpp:

Go to the source code of this file.

Typedefs

typedef StringMap< const
MCSectionELF * > 
ELFUniqueMapTy
typedef StringMap< const
MCSectionMachO * > 
MachOUniqueMapTy
typedef StringMap< const
MCSectionCOFF * > 
COFFUniqueMapTy

Functions

static bool isSuitableForBSS (const GlobalVariable *GV)
static bool IsNullTerminatedString (const Constant *C)
static SectionKind getELFKindForNamedSection (const char *Name, SectionKind K)
static unsigned getELFSectionType (const char *Name, SectionKind K)
static unsigned getELFSectionFlags (SectionKind K)
static const char * getSectionPrefixForUniqueGlobal (SectionKind Kind)
static const char * getCOFFSectionPrefixForUniqueGlobal (SectionKind Kind)


Typedef Documentation

Definition at line 937 of file TargetLoweringObjectFile.cpp.

Definition at line 283 of file TargetLoweringObjectFile.cpp.

Definition at line 639 of file TargetLoweringObjectFile.cpp.


Function Documentation

static const char* getCOFFSectionPrefixForUniqueGlobal ( SectionKind  Kind  )  [static]

static SectionKind getELFKindForNamedSection ( const char *  Name,
SectionKind  K 
) [static]

static unsigned getELFSectionFlags ( SectionKind  K  )  [static]

static unsigned getELFSectionType ( const char *  Name,
SectionKind  K 
) [static]

static const char* getSectionPrefixForUniqueGlobal ( SectionKind  Kind  )  [static]

static bool IsNullTerminatedString ( const Constant *  C  )  [static]

IsNullTerminatedString - Return true if the specified constant (which is known to have a type that is an array of 1/2/4 byte elements) ends with a nul value and contains no other nuls in it.

Definition at line 88 of file TargetLoweringObjectFile.cpp.

References llvm::dyn_cast(), llvm::ArrayType::getNumElements(), llvm::Value::getType(), and llvm::ConstantInt::getZExtValue().

Referenced by llvm::TargetLoweringObjectFile::getKindForGlobal().

static bool isSuitableForBSS ( const GlobalVariable *  GV  )  [static]