diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:28:49 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:28:49 +0000 |
commit | c85dca66e68c9fa6ffa8471c64113b12d8d94fb1 (patch) | |
tree | 824d5c8c6638eb390436a8923d6435e5b94226ef /lib/MC/MCELFStreamer.cpp | |
parent | 5c96c69161aa4480c432027e363d0ea1aa34acee (diff) | |
download | external_llvm-c85dca66e68c9fa6ffa8471c64113b12d8d94fb1.tar.gz external_llvm-c85dca66e68c9fa6ffa8471c64113b12d8d94fb1.tar.bz2 external_llvm-c85dca66e68c9fa6ffa8471c64113b12d8d94fb1.zip |
Remove duplicated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCELFStreamer.cpp')
-rw-r--r-- | lib/MC/MCELFStreamer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/MC/MCELFStreamer.cpp b/lib/MC/MCELFStreamer.cpp index 2369821204..1c89b5655e 100644 --- a/lib/MC/MCELFStreamer.cpp +++ b/lib/MC/MCELFStreamer.cpp @@ -155,19 +155,19 @@ private: } void SetSectionData() { - SetSection(".data", MCSectionELF::SHT_PROGBITS, + SetSection(".data", ELF::SHT_PROGBITS, MCSectionELF::SHF_WRITE |MCSectionELF::SHF_ALLOC, SectionKind::getDataRel()); EmitCodeAlignment(4, 0); } void SetSectionText() { - SetSection(".text", MCSectionELF::SHT_PROGBITS, + SetSection(".text", ELF::SHT_PROGBITS, MCSectionELF::SHF_EXECINSTR | MCSectionELF::SHF_ALLOC, SectionKind::getText()); EmitCodeAlignment(4, 0); } void SetSectionBss() { - SetSection(".bss", MCSectionELF::SHT_NOBITS, + SetSection(".bss", ELF::SHT_NOBITS, MCSectionELF::SHF_WRITE | MCSectionELF::SHF_ALLOC, SectionKind::getBSS()); EmitCodeAlignment(4, 0); @@ -346,7 +346,7 @@ void MCELFStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size, if (GetBinding(SD) == ELF_STB_Local) { const MCSection *Section = getAssembler().getContext().getELFSection(".bss", - MCSectionELF::SHT_NOBITS, + ELF::SHT_NOBITS, MCSectionELF::SHF_WRITE | MCSectionELF::SHF_ALLOC, SectionKind::getBSS()); |