LLVM  6.0.0svn
Functions
TargetLoweringObjectFileImpl.cpp File Reference
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/Triple.h"
#include "llvm/BinaryFormat/COFF.h"
#include "llvm/BinaryFormat/Dwarf.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/BinaryFormat/MachO.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
#include "llvm/IR/Comdat.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/GlobalAlias.h"
#include "llvm/IR/GlobalObject.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Mangler.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCSectionCOFF.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCSectionWasm.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCSymbolELF.h"
#include "llvm/MC/MCValue.h"
#include "llvm/MC/SectionKind.h"
#include "llvm/ProfileData/InstrProf.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/CodeGen.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include <cassert>
#include <string>
Include dependency graph for TargetLoweringObjectFileImpl.cpp:

Go to the source code of this file.

Functions

static void GetObjCImageInfo (Module &M, unsigned &Version, unsigned &Flags, StringRef &Section)
 
static SectionKind getELFKindForNamedSection (StringRef Name, SectionKind K)
 
static unsigned getELFSectionType (StringRef Name, SectionKind K)
 
static unsigned getELFSectionFlags (SectionKind K)
 
static const ComdatgetELFComdat (const GlobalValue *GV)
 
static const MCSymbolELFgetAssociatedSymbol (const GlobalObject *GO, const TargetMachine &TM)
 
static StringRef getSectionPrefixForGlobal (SectionKind Kind)
 Return the section prefix name used by options FunctionsSections and DataSections. More...
 
static MCSectionELFselectELFSectionForGlobal (MCContext &Ctx, const GlobalObject *GO, SectionKind Kind, Mangler &Mang, const TargetMachine &TM, bool EmitUniqueSection, unsigned Flags, unsigned *NextUniqueID, const MCSymbolELF *AssociatedSymbol)
 
static MCSectionELFgetStaticStructorSection (MCContext &Ctx, bool UseInitArray, bool IsCtor, unsigned Priority, const MCSymbol *KeySym)
 
static void checkMachOComdat (const GlobalValue *GV)
 
static bool canUsePrivateLabel (const MCAsmInfo &AsmInfo, const MCSection &Section)
 
static unsigned getCOFFSectionFlags (SectionKind K, const TargetMachine &TM)
 
static const GlobalValuegetComdatGVForCOFF (const GlobalValue *GV)
 
static int getSelectionForCOFF (const GlobalValue *GV)
 
static const chargetCOFFSectionNameForUniqueGlobal (SectionKind Kind)
 
static MCSectionCOFFgetCOFFStaticStructorSection (MCContext &Ctx, const Triple &T, bool IsCtor, unsigned Priority, const MCSymbol *KeySym, MCSectionCOFF *Default)
 
static void checkWasmComdat (const GlobalValue *GV)
 
static SectionKind getWasmKindForNamedSection (StringRef Name, SectionKind K)
 
static MCSectionWasmselectWasmSectionForGlobal (MCContext &Ctx, const GlobalObject *GO, SectionKind Kind, Mangler &Mang, const TargetMachine &TM, bool EmitUniqueSection, unsigned *NextUniqueID)
 

Function Documentation

◆ canUsePrivateLabel()

static bool canUsePrivateLabel ( const MCAsmInfo AsmInfo,
const MCSection Section 
)
static

◆ checkMachOComdat()

static void checkMachOComdat ( const GlobalValue GV)
static

◆ checkWasmComdat()

static void checkWasmComdat ( const GlobalValue GV)
static

◆ getAssociatedSymbol()

static const MCSymbolELF* getAssociatedSymbol ( const GlobalObject GO,
const TargetMachine TM 
)
static

◆ getCOFFSectionFlags()

static unsigned getCOFFSectionFlags ( SectionKind  K,
const TargetMachine TM 
)
static

◆ getCOFFSectionNameForUniqueGlobal()

static const char* getCOFFSectionNameForUniqueGlobal ( SectionKind  Kind)
static

◆ getCOFFStaticStructorSection()

static MCSectionCOFF* getCOFFStaticStructorSection ( MCContext Ctx,
const Triple T,
bool  IsCtor,
unsigned  Priority,
const MCSymbol KeySym,
MCSectionCOFF Default 
)
static

◆ getComdatGVForCOFF()

static const GlobalValue* getComdatGVForCOFF ( const GlobalValue GV)
static

◆ getELFComdat()

static const Comdat* getELFComdat ( const GlobalValue GV)
static

◆ getELFKindForNamedSection()

static SectionKind getELFKindForNamedSection ( StringRef  Name,
SectionKind  K 
)
static

◆ getELFSectionFlags()

static unsigned getELFSectionFlags ( SectionKind  K)
static

◆ getELFSectionType()

static unsigned getELFSectionType ( StringRef  Name,
SectionKind  K 
)
static

◆ GetObjCImageInfo()

static void GetObjCImageInfo ( Module M,
unsigned Version,
unsigned Flags,
StringRef Section 
)
static

◆ getSectionPrefixForGlobal()

static StringRef getSectionPrefixForGlobal ( SectionKind  Kind)
static

◆ getSelectionForCOFF()

static int getSelectionForCOFF ( const GlobalValue GV)
static

◆ getStaticStructorSection()

static MCSectionELF* getStaticStructorSection ( MCContext Ctx,
bool  UseInitArray,
bool  IsCtor,
unsigned  Priority,
const MCSymbol KeySym 
)
static

◆ getWasmKindForNamedSection()

static SectionKind getWasmKindForNamedSection ( StringRef  Name,
SectionKind  K 
)
static

◆ selectELFSectionForGlobal()

static MCSectionELF* selectELFSectionForGlobal ( MCContext Ctx,
const GlobalObject GO,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM,
bool  EmitUniqueSection,
unsigned  Flags,
unsigned NextUniqueID,
const MCSymbolELF AssociatedSymbol 
)
static

◆ selectWasmSectionForGlobal()

static MCSectionWasm* selectWasmSectionForGlobal ( MCContext Ctx,
const GlobalObject GO,
SectionKind  Kind,
Mangler Mang,
const TargetMachine TM,
bool  EmitUniqueSection,
unsigned NextUniqueID 
)
static