LLVM API Documentation
#include <ELFTargetAsmInfo.h>
Public Member Functions | |
| ELFTargetAsmInfo (const TargetMachine &TM) | |
| virtual const Section * | SelectSectionForGlobal (const GlobalValue *GV) const |
| virtual std::string | printSectionFlags (unsigned flags) const |
| const Section * | MergeableConstSection (const GlobalVariable *GV) const |
| const Section * | MergeableConstSection (const Type *Ty) const |
| const Section * | MergeableStringSection (const GlobalVariable *GV) const |
| virtual const Section * | SelectSectionForMachineConst (const Type *Ty) const |
Definition at line 25 of file ELFTargetAsmInfo.h.
| ELFTargetAsmInfo::ELFTargetAsmInfo | ( | const TargetMachine & | TM | ) | [explicit] |
Definition at line 27 of file ELFTargetAsmInfo.cpp.
References llvm::SectionFlags::BSS, llvm::TargetAsmInfo::BSSSection_, llvm::TargetAsmInfo::getNamedSection(), llvm::TargetAsmInfo::getUnnamedSection(), llvm::SectionFlags::None, llvm::TargetAsmInfo::ReadOnlySection, llvm::SectionFlags::TLS, llvm::TargetAsmInfo::TLSBSSSection, llvm::TargetAsmInfo::TLSDataSection, and llvm::SectionFlags::Writeable.
| const Section * ELFTargetAsmInfo::SelectSectionForGlobal | ( | const GlobalValue * | GV | ) | const [virtual] |
Reimplemented from llvm::TargetAsmInfo.
Reimplemented in llvm::MipsTargetAsmInfo, and llvm::XCoreTargetAsmInfo.
Definition at line 41 of file ELFTargetAsmInfo.cpp.
References llvm::SectionKind::BSS, llvm::SectionKind::Data, llvm::TargetAsmInfo::DataSection, llvm::GlobalValue::DLLExportLinkage, llvm::GlobalValue::ExternalLinkage, F, llvm::TargetAsmInfo::getBSSSection_(), llvm::TargetAsmInfo::getNamedSection(), llvm::TargetAsmInfo::getReadOnlySection(), llvm::GlobalValue::InternalLinkage, Kind, llvm::GlobalValue::LinkOnceLinkage, MergeableConstSection(), MergeableStringSection(), Name, llvm::GlobalValue::PrivateLinkage, llvm::SectionKind::ROData, llvm::SectionKind::RODataMergeConst, llvm::SectionKind::RODataMergeStr, llvm::TargetAsmInfo::SectionFlagsForGlobal(), llvm::TargetAsmInfo::SectionKindForGlobal(), llvm::SectionKind::SmallBSS, llvm::SectionKind::SmallData, llvm::SectionKind::SmallROData, llvm::TargetAsmInfo::TextSection, llvm::SectionKind::ThreadBSS, llvm::SectionKind::ThreadData, llvm::TargetAsmInfo::TLSBSSSection, llvm::TargetAsmInfo::TLSDataSection, llvm::TargetAsmInfo::UniqueSectionForGlobal(), and llvm::GlobalValue::WeakLinkage.
Referenced by llvm::XCoreTargetAsmInfo::SelectSectionForGlobal(), and llvm::MipsTargetAsmInfo::SelectSectionForGlobal().
| std::string ELFTargetAsmInfo::printSectionFlags | ( | unsigned | flags | ) | const [virtual] |
Reimplemented from llvm::TargetAsmInfo.
Reimplemented in llvm::SparcELFTargetAsmInfo, and llvm::XCoreTargetAsmInfo.
Definition at line 150 of file ELFTargetAsmInfo.cpp.
References llvm::SectionFlags::BSS, llvm::SectionFlags::Code, llvm::TargetAsmInfo::CommentString, llvm::SectionFlags::Debug, llvm::SectionFlags::getEntitySize(), llvm::SectionFlags::Mergeable, llvm::SectionFlags::Small, llvm::SectionFlags::Strings, llvm::SectionFlags::TLS, llvm::utostr(), and llvm::SectionFlags::Writeable.
Referenced by llvm::SparcELFTargetAsmInfo::printSectionFlags().
| const Section * ELFTargetAsmInfo::MergeableConstSection | ( | const GlobalVariable * | GV | ) | const |
Reimplemented in llvm::XCoreTargetAsmInfo.
Definition at line 101 of file ELFTargetAsmInfo.cpp.
References llvm::CallingConv::C, llvm::GlobalVariable::getInitializer(), and llvm::Value::getType().
Referenced by SelectSectionForGlobal(), and SelectSectionForMachineConst().
Reimplemented in llvm::XCoreTargetAsmInfo.
Definition at line 107 of file ELFTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::getNamedSection(), llvm::TargetAsmInfo::getReadOnlySection(), llvm::TargetMachine::getTargetData(), llvm::TargetData::getTypePaddedSize(), llvm::SectionFlags::Mergeable, Name, llvm::SectionFlags::setEntitySize(), TD, llvm::TargetAsmInfo::TM, and llvm::utostr().
| const Section * ELFTargetAsmInfo::MergeableStringSection | ( | const GlobalVariable * | GV | ) | const |
Reimplemented in llvm::XCoreTargetAsmInfo.
Definition at line 126 of file ELFTargetAsmInfo.cpp.
References Align, llvm::CallingConv::C, llvm::TargetAsmInfo::getCStringSection(), llvm::TargetAsmInfo::getNamedSection(), llvm::TargetData::getPrefTypeAlignment(), llvm::TargetAsmInfo::getReadOnlySection(), llvm::TargetMachine::getTargetData(), llvm::Value::getType(), llvm::TargetData::getTypePaddedSize(), llvm::SectionFlags::Mergeable, Name, llvm::SectionFlags::setEntitySize(), llvm::SectionFlags::Strings, TD, llvm::TargetAsmInfo::TM, Ty, and llvm::utostr().
Referenced by SelectSectionForGlobal().
Reimplemented from llvm::TargetAsmInfo.
Reimplemented in llvm::XCoreTargetAsmInfo.
Definition at line 95 of file ELFTargetAsmInfo.cpp.
References MergeableConstSection().