diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 22:00:25 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-03-10 22:00:25 +0000 |
| commit | 6b9998b3ebd4f21ba726e65e5fe2636e4eeed598 (patch) | |
| tree | 9cff11f02df5b1c25dfa40e0c0587221eec2e9ee /llvm/lib/MC/MCSectionMachO.cpp | |
| parent | eb2c19a5493b2dd669b374e09a078adb6e47b7e5 (diff) | |
| download | bcm5719-llvm-6b9998b3ebd4f21ba726e65e5fe2636e4eeed598.tar.gz bcm5719-llvm-6b9998b3ebd4f21ba726e65e5fe2636e4eeed598.zip | |
Create symbols marking the start of a section earlier.
This lets us pass the symbol to the constructor and avoid the mutable field.
This also opens the way for outputting the symbol only when needed, instead
of outputting them at the start of the file.
llvm-svn: 231859
Diffstat (limited to 'llvm/lib/MC/MCSectionMachO.cpp')
| -rw-r--r-- | llvm/lib/MC/MCSectionMachO.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/MC/MCSectionMachO.cpp b/llvm/lib/MC/MCSectionMachO.cpp index 46beda4d942..c9f15914e4b 100644 --- a/llvm/lib/MC/MCSectionMachO.cpp +++ b/llvm/lib/MC/MCSectionMachO.cpp @@ -70,8 +70,10 @@ ENTRY(nullptr /*FIXME*/, S_ATTR_LOC_RELOC) }; MCSectionMachO::MCSectionMachO(StringRef Segment, StringRef Section, - unsigned TAA, unsigned reserved2, SectionKind K) - : MCSection(SV_MachO, K), TypeAndAttributes(TAA), Reserved2(reserved2) { + unsigned TAA, unsigned reserved2, SectionKind K, + MCSymbol *Begin) + : MCSection(SV_MachO, K, Begin), TypeAndAttributes(TAA), + Reserved2(reserved2) { assert(Segment.size() <= 16 && Section.size() <= 16 && "Segment or section string too long"); for (unsigned i = 0; i != 16; ++i) { |

