LLVM
8.0.1
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Definition at line 139 of file TargetLoweringObjectFileImpl.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1533 of file TargetLoweringObjectFileImpl.cpp.
References llvm::emitLinkerFlagsForGlobalCOFF(), llvm::TargetLoweringObjectFile::getMangler(), and llvm::MCObjectFileInfo::getTargetTriple().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1538 of file TargetLoweringObjectFileImpl.cpp.
References llvm::emitLinkerFlagsForUsedCOFF(), llvm::TargetLoweringObjectFile::getMangler(), and llvm::MCObjectFileInfo::getTargetTriple().
|
overridevirtual |
Emit Obj-C garbage collection and linker options.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1420 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCStreamer::AddBlankLine(), C, llvm::MCStreamer::EmitBytes(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), llvm::StringRef::empty(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCObjectFileInfo::getDrectveSection(), llvm::Module::getNamedMetadata(), GetObjCImageInfo(), llvm::SectionKind::getReadOnly(), llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::ARMBuildAttrs::Section, llvm::MCStreamer::SwitchSection(), and llvm::IndexedInstrProf::Version.
|
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 GO->hasSection() is true.
Implements llvm::TargetLoweringObjectFile.
Definition at line 1275 of file TargetLoweringObjectFileImpl.cpp.
References Characteristics, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getComdatGVForCOFF(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCSymbol::getName(), llvm::GlobalObject::getSection(), getSelectionForCOFF(), llvm::TargetMachine::getSymbol(), llvm::GlobalObject::hasComdat(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, llvm::COFF::IMAGE_SCN_LNK_COMDAT, Name, and Selection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1381 of file TargetLoweringObjectFileImpl.cpp.
References llvm::TargetMachine::getDataSections(), llvm::TargetMachine::getFunctionSections(), llvm::TargetLoweringObjectFile::getMangler(), llvm::Mangler::getNameWithPrefix(), and llvm::GlobalValue::hasPrivateLinkage().
|
overridevirtual |
Given a mergeable constant with the specified size and relocation information, return a section that it should be placed in.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1607 of file TargetLoweringObjectFileImpl.cpp.
References Characteristics, llvm::MCContext::getAsmInfo(), llvm::MCContext::getCOFFSection(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MCAsmInfo::hasCOFFComdatConstants(), llvm::COFF::IMAGE_COMDAT_SELECT_ANY, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_LNK_COMDAT, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::SectionKind::isMergeableConst(), llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst32(), llvm::SectionKind::isMergeableConst4(), llvm::SectionKind::isMergeableConst8(), and scalarConstantToHexString().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1393 of file TargetLoweringObjectFileImpl.cpp.
References 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 1519 of file TargetLoweringObjectFileImpl.cpp.
References getCOFFStaticStructorSection(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCObjectFileInfo::getTargetTriple(), and llvm::TargetLoweringObjectFile::StaticCtorSection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1526 of file TargetLoweringObjectFileImpl.cpp.
References getCOFFStaticStructorSection(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCObjectFileInfo::getTargetTriple(), and llvm::TargetLoweringObjectFile::StaticDtorSection.
|
overridevirtual |
This method must be called before any actual lowering is done.
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 1457 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCContext::getCOFFSection(), llvm::SectionKind::getData(), llvm::SectionKind::getReadOnly(), llvm::TargetMachine::getTargetTriple(), llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::COFF::IMAGE_SCN_MEM_WRITE, llvm::TargetLoweringObjectFile::Initialize(), llvm::Triple::isKnownWindowsMSVCEnvironment(), llvm::Triple::isWindowsItaniumEnvironment(), llvm::TargetLoweringObjectFile::StaticCtorSection, and llvm::TargetLoweringObjectFile::StaticDtorSection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1543 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::TargetLoweringObjectFile::getContext(), llvm::Value::getName(), llvm::Type::getPointerAddressSpace(), llvm::TargetMachine::getSymbol(), llvm::TargetMachine::getTargetTriple(), llvm::GlobalValue::getType(), llvm::GlobalValue::hasExternalLinkage(), llvm::GlobalValue::hasSection(), llvm::Triple::isKnownWindowsMSVCEnvironment(), llvm::GlobalValue::isThreadLocal(), llvm::Triple::isWindowsCoreCLREnvironment(), llvm::Triple::isWindowsItaniumEnvironment(), and llvm::MCSymbolRefExpr::VK_COFF_IMGREL32.
|
overridevirtual |
Implements llvm::TargetLoweringObjectFile.
Definition at line 1314 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::BSSSection, Characteristics, llvm::MCObjectFileInfo::DataSection, llvm::MCContext::GenericSectionID, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), getComdatGVForCOFF(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetMachine::getDataSections(), llvm::TargetMachine::getFunctionSections(), llvm::TargetLoweringObjectFile::getMangler(), llvm::MCSymbol::getName(), llvm::Value::getName(), llvm::Mangler::getNameWithPrefix(), getSelectionForCOFF(), llvm::TargetMachine::getSymbol(), llvm::MCObjectFileInfo::getTargetTriple(), llvm::GlobalObject::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(), Name, llvm::MCObjectFileInfo::ReadOnlySection, Selection, llvm::MCObjectFileInfo::TextSection, and llvm::MCObjectFileInfo::TLSDataSection.