LLVM API Documentation
#include <TargetLoweringObjectFile.h>
Public Member Functions | |
| TargetLoweringObjectFileCOFF () | |
| ~TargetLoweringObjectFileCOFF () | |
| virtual void | Initialize (MCContext &Ctx, const TargetMachine &TM) |
| virtual const MCSection * | getExplicitSectionGlobal (const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const |
| virtual const MCSection * | SelectSectionForGlobal (const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const |
| const MCSection * | getCOFFSection (const char *Name, bool isDirective, SectionKind K) const |
Definition at line 305 of file TargetLoweringObjectFile.h.
| llvm::TargetLoweringObjectFileCOFF::TargetLoweringObjectFileCOFF | ( | ) | [inline] |
Definition at line 308 of file TargetLoweringObjectFile.h.
| TargetLoweringObjectFileCOFF::~TargetLoweringObjectFileCOFF | ( | ) |
Definition at line 939 of file TargetLoweringObjectFile.cpp.
| void TargetLoweringObjectFileCOFF::Initialize | ( | MCContext & | ctx, | |
| const TargetMachine & | TM | |||
| ) | [virtual] |
Initialize - this method must be called before any actual lowering is done. This specifies the current context for codegen, and gives the lowering implementations a chance to set up their default sections.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 958 of file TargetLoweringObjectFile.cpp.
References llvm::TargetLoweringObjectFile::DataSection, llvm::TargetLoweringObjectFile::DwarfAbbrevSection, llvm::TargetLoweringObjectFile::DwarfARangesSection, llvm::TargetLoweringObjectFile::DwarfFrameSection, llvm::TargetLoweringObjectFile::DwarfInfoSection, llvm::TargetLoweringObjectFile::DwarfLineSection, llvm::TargetLoweringObjectFile::DwarfLocSection, llvm::TargetLoweringObjectFile::DwarfMacroInfoSection, llvm::TargetLoweringObjectFile::DwarfPubNamesSection, llvm::TargetLoweringObjectFile::DwarfPubTypesSection, llvm::TargetLoweringObjectFile::DwarfRangesSection, llvm::TargetLoweringObjectFile::DwarfStrSection, llvm::TargetLoweringObjectFile::EHFrameSection, getCOFFSection(), llvm::SectionKind::getDataRel(), llvm::SectionKind::getMetadata(), llvm::SectionKind::getReadOnly(), llvm::SectionKind::getText(), llvm::TargetLoweringObjectFile::Initialize(), llvm::TargetLoweringObjectFile::LSDASection, llvm::TargetLoweringObjectFile::StaticCtorSection, llvm::TargetLoweringObjectFile::StaticDtorSection, and llvm::TargetLoweringObjectFile::TextSection.
| const MCSection * TargetLoweringObjectFileCOFF::getExplicitSectionGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [virtual] |
getExplicitSectionGlobal - Targets should implement this method to assign a section to globals with an explicit section specfied. The implementation of this method can assume that GV->hasSection() is true.
Implements llvm::TargetLoweringObjectFile.
Definition at line 1017 of file TargetLoweringObjectFile.cpp.
References getCOFFSection(), and llvm::GlobalValue::getSection().
| const MCSection * TargetLoweringObjectFileCOFF::SelectSectionForGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [virtual] |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1032 of file TargetLoweringObjectFile.cpp.
References getCOFFSection(), getCOFFSectionPrefixForUniqueGlobal(), llvm::TargetLoweringObjectFile::getDataSection(), llvm::Value::getNameStr(), llvm::TargetLoweringObjectFile::getTextSection(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), llvm::GlobalValue::isWeakForLinker(), llvm::Mangler::makeNameProper(), Name, and llvm::cl::Prefix.
| const MCSection * TargetLoweringObjectFileCOFF::getCOFFSection | ( | const char * | Name, | |
| bool | isDirective, | |||
| SectionKind | K | |||
| ) | const |
getCOFFSection - Return the MCSection for the specified COFF section. FIXME: Switch this to a semantic view eventually.
Definition at line 945 of file TargetLoweringObjectFile.cpp.
References llvm::MCSectionCOFF::Create(), Entry, and llvm::TargetLoweringObjectFile::getContext().
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), getExplicitSectionGlobal(), Initialize(), and SelectSectionForGlobal().