summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-09-27 21:40:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-09-27 21:40:27 +0000
commit9ca41113f65fc2d5d4b1db7092457b8595154b9f (patch)
treee659a0de035e5b2dbe247beac5afeefd7288b71b /llvm/lib/MC
parent988efc1ba2548311ea823fc5c1f821581bdb74f0 (diff)
downloadbcm5719-llvm-9ca41113f65fc2d5d4b1db7092457b8595154b9f.tar.gz
bcm5719-llvm-9ca41113f65fc2d5d4b1db7092457b8595154b9f.zip
Make sure .text doesn't produce extra alignment.
llvm-svn: 114895
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r--llvm/lib/MC/MCParser/ELFAsmParser.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/llvm/lib/MC/MCParser/ELFAsmParser.cpp b/llvm/lib/MC/MCParser/ELFAsmParser.cpp
index 072befadd5f..7d8f68f1b0c 100644
--- a/llvm/lib/MC/MCParser/ELFAsmParser.cpp
+++ b/llvm/lib/MC/MCParser/ELFAsmParser.cpp
@@ -54,25 +54,19 @@ public:
// FIXME: Part of this logic is duplicated in the MCELFStreamer. What is
// the best way for us to get access to it?
bool ParseSectionDirectiveData(StringRef, SMLoc) {
- bool ret = ParseSectionSwitch(".data", MCSectionELF::SHT_PROGBITS,
+ return ParseSectionSwitch(".data", MCSectionELF::SHT_PROGBITS,
MCSectionELF::SHF_WRITE |MCSectionELF::SHF_ALLOC,
SectionKind::getDataRel());
- getStreamer().EmitCodeAlignment(4, 0);
- return ret;
}
bool ParseSectionDirectiveText(StringRef, SMLoc) {
- bool ret = ParseSectionSwitch(".text", MCSectionELF::SHT_PROGBITS,
+ return ParseSectionSwitch(".text", MCSectionELF::SHT_PROGBITS,
MCSectionELF::SHF_EXECINSTR |
MCSectionELF::SHF_ALLOC, SectionKind::getText());
- getStreamer().EmitCodeAlignment(4, 0);
- return ret;
}
bool ParseSectionDirectiveBSS(StringRef, SMLoc) {
- bool ret = ParseSectionSwitch(".bss", MCSectionELF::SHT_NOBITS,
+ return ParseSectionSwitch(".bss", MCSectionELF::SHT_NOBITS,
MCSectionELF::SHF_WRITE |
MCSectionELF::SHF_ALLOC, SectionKind::getBSS());
- getStreamer().EmitCodeAlignment(4, 0);
- return ret;
}
bool ParseSectionDirectiveRoData(StringRef, SMLoc) {
return ParseSectionSwitch(".rodata", MCSectionELF::SHT_PROGBITS,
OpenPOWER on IntegriCloud