diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-04 18:02:01 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-04 18:02:01 +0000 |
commit | 8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d (patch) | |
tree | 7327f2fc55e2e63800b1d5070ad1fc05516ac171 /llvm/lib/MC/MCSectionMachO.cpp | |
parent | ecc59396d1344f642a2ae5f6fc9e7cb3fb2fab9b (diff) | |
download | bcm5719-llvm-8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d.tar.gz bcm5719-llvm-8ca44f0b5ca7dbba81e1da5186ed30f4dc44152d.zip |
Implement unique sections with an unique ID.
This allows the compiler/assembly programmer to switch back to a
section. This in turn fixes the bootstrap failure on powerpc (tested
on gcc110) without changing the ppc codegen at all.
I will try to cleanup the various getELFSection overloads in a followup patch.
Just using a default argument now would lead to ambiguities.
llvm-svn: 234099
Diffstat (limited to 'llvm/lib/MC/MCSectionMachO.cpp')
-rw-r--r-- | llvm/lib/MC/MCSectionMachO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCSectionMachO.cpp b/llvm/lib/MC/MCSectionMachO.cpp index 606d0747528..c9f15914e4b 100644 --- a/llvm/lib/MC/MCSectionMachO.cpp +++ b/llvm/lib/MC/MCSectionMachO.cpp @@ -72,7 +72,7 @@ ENTRY(nullptr /*FIXME*/, S_ATTR_LOC_RELOC) MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section, unsigned TAA, unsigned reserved2, SectionKind K, MCSymbol *Begin) - : MCSection(SV_MachO, K, Begin, /*Unique*/ false), TypeAndAttributes(TAA), + : MCSection(SV_MachO, K, Begin), TypeAndAttributes(TAA), Reserved2(reserved2) { assert(Segment.size() <= 16 && Section.size() <= 16 && "Segment or section string too long"); |