diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-26 19:23:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-26 19:23:28 +0000 |
commit | 0fcf4dc6d367216ff51501af282e33e93da8586f (patch) | |
tree | 37e6bf1e5da0f89ae50c33fa16f8ac0f1ca0d2da /include | |
parent | 30b2bdfa734d59bb7bc769dc2f06e4900a77f6f8 (diff) | |
download | external_llvm-0fcf4dc6d367216ff51501af282e33e93da8586f.zip external_llvm-0fcf4dc6d367216ff51501af282e33e93da8586f.tar.gz external_llvm-0fcf4dc6d367216ff51501af282e33e93da8586f.tar.bz2 |
untangle a TargetAsmInfo hack where ELFTargetAsmInfo would create a
'unnamed' bss section, but some impls would want a named one. Since
they don't have consistent behavior, just make each target do their
own thing, instead of doing something "sortof common" then having
targets change immutable objects later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/ELFTargetAsmInfo.h | 2 | ||||
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 7 |
2 files changed, 3 insertions, 6 deletions
diff --git a/include/llvm/Target/ELFTargetAsmInfo.h b/include/llvm/Target/ELFTargetAsmInfo.h index eb24dd1..1b405d6 100644 --- a/include/llvm/Target/ELFTargetAsmInfo.h +++ b/include/llvm/Target/ELFTargetAsmInfo.h @@ -23,7 +23,7 @@ namespace llvm { class Type; struct ELFTargetAsmInfo: public TargetAsmInfo { - explicit ELFTargetAsmInfo(const TargetMachine &TM); + ELFTargetAsmInfo(const TargetMachine &TM); /// getSectionForMergeableConstant - Given a mergeable constant with the /// specified size and relocation information, return a section that it diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index ab28ec1..af3fd22 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -254,7 +254,6 @@ namespace llvm { explicit Section(unsigned F = SectionFlags::Invalid) : Flags(F) { } public: - unsigned getEntitySize() const { return (Flags >> 24) & 0xFF; } const std::string &getName() const { return Name; } @@ -679,11 +678,9 @@ namespace llvm { virtual ~TargetAsmInfo(); const Section* getNamedSection(const char *Name, - unsigned Flags = SectionFlags::None, - bool Override = false) const; + unsigned Flags = SectionFlags::None) const; const Section* getUnnamedSection(const char *Directive, - unsigned Flags = SectionFlags::None, - bool Override = false) const; + unsigned Flags = SectionFlags::None) const; /// Measure the specified inline asm to determine an approximation of its /// length. |