|
LLVM
3.7.0
|
#include <TargetLoweringObjectFileImpl.h>
Definition at line 130 of file TargetLoweringObjectFileImpl.h.
|
inlineoverride |
Definition at line 132 of file TargetLoweringObjectFileImpl.h.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1029 of file TargetLoweringObjectFileImpl.cpp.
References llvm::TargetLoweringObjectFile::DL, llvm::raw_ostream::flush(), llvm::DataLayout::getGlobalPrefix(), llvm::Mangler::getNameWithPrefix(), llvm::MCObjectFileInfo::getTargetTriple(), llvm::GlobalValue::getValueType(), llvm::GlobalValue::hasDLLExportStorageClass(), llvm::GlobalValue::isDeclaration(), llvm::Type::isFunctionTy(), llvm::Triple::isKnownWindowsMSVCEnvironment(), llvm::Triple::isWindowsCygwinEnvironment(), and llvm::Triple::isWindowsGNUEnvironment().
Referenced by llvm::X86AsmPrinter::EmitEndOfAsmFile().
|
overridevirtual |
Emit Obj-C garbage collection and linker options.
Only linker option emission is implemented for COFF.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 982 of file TargetLoweringObjectFileImpl.cpp.
References llvm::ArrayRef< T >::begin(), llvm::MCStreamer::EmitBytes(), llvm::ArrayRef< T >::end(), llvm::MCObjectFileInfo::getDrectveSection(), llvm::MDNode::getNumOperands(), llvm::MDNode::getOperand(), llvm::MDString::getString(), llvm::Module::ModuleFlagEntry::Key, llvm::MCStreamer::SwitchSection(), and llvm::Module::ModuleFlagEntry::Val.
|
overridevirtual |
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 847 of file TargetLoweringObjectFileImpl.cpp.
References Characteristics, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getComdatGVForCOFF(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCSymbol::getName(), llvm::GlobalValue::getSection(), getSelectionForCOFF(), llvm::TargetMachine::getSymbol(), llvm::GlobalValue::hasComdat(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, and llvm::COFF::IMAGE_SCN_LNK_COMDAT.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 945 of file TargetLoweringObjectFileImpl.cpp.
References llvm::TargetMachine::getDataSections(), llvm::TargetMachine::getFunctionSections(), llvm::Mangler::getNameWithPrefix(), and llvm::GlobalValue::hasPrivateLinkage().
Referenced by SelectSectionForGlobal().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 956 of file TargetLoweringObjectFileImpl.cpp.
References llvm::C, Characteristics, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), llvm::GlobalObject::getComdat(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetMachine::getFunctionSections(), llvm::MCSymbol::getName(), llvm::SectionKind::getReadOnly(), llvm::TargetMachine::getSymbol(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, llvm::COFF::IMAGE_SCN_LNK_COMDAT, Kind, and llvm::MCObjectFileInfo::ReadOnlySection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1017 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCContext::getAssociativeCOFFSection(), llvm::TargetLoweringObjectFile::getContext(), and llvm::MCObjectFileInfo::StaticCtorSection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1023 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCContext::getAssociativeCOFFSection(), llvm::TargetLoweringObjectFile::getContext(), and llvm::MCObjectFileInfo::StaticDtorSection.
|
overridevirtual |
Implements llvm::TargetLoweringObjectFile.
Definition at line 889 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::BSSSection, Characteristics, llvm::MCObjectFileInfo::DataSection, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), getComdatGVForCOFF(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetMachine::getDataSections(), llvm::TargetMachine::getFunctionSections(), llvm::MCSymbol::getName(), getNameWithPrefix(), getSelectionForCOFF(), llvm::TargetMachine::getSymbol(), llvm::GlobalValue::hasComdat(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_NODUPLICATES, llvm::COFF::IMAGE_SCN_LNK_COMDAT, llvm::SectionKind::isBSS(), llvm::SectionKind::isCommon(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), llvm::MCObjectFileInfo::ReadOnlySection, llvm::MCObjectFileInfo::TextSection, and llvm::MCObjectFileInfo::TLSDataSection.
1.8.6