diff options
author | Jan Wen Voung <jvoung@google.com> | 2010-09-30 02:41:46 +0000 |
---|---|---|
committer | Jan Wen Voung <jvoung@google.com> | 2010-09-30 02:41:46 +0000 |
commit | 12ad94e03c46c3bba44756bc052e08d6c4341b3d (patch) | |
tree | 4b21313a655fa45b76b4b9664ee7ffb11ff655f4 /lib/MC/MCParser/ELFAsmParser.cpp | |
parent | 7070387f08f7dc797b554ed8013cba9f8b74121a (diff) |
Have ELFAsmParser.cpp use the already parsed "Size" (entry size) when
constructing a section. Test for a few cases also included.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115132 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCParser/ELFAsmParser.cpp')
-rw-r--r-- | lib/MC/MCParser/ELFAsmParser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MC/MCParser/ELFAsmParser.cpp b/lib/MC/MCParser/ELFAsmParser.cpp index 7d8f68f1b0..b63d623b67 100644 --- a/lib/MC/MCParser/ELFAsmParser.cpp +++ b/lib/MC/MCParser/ELFAsmParser.cpp @@ -284,7 +284,8 @@ bool ELFAsmParser::ParseDirectiveSection(StringRef, SMLoc) { ? SectionKind::getText() : SectionKind::getDataRel(); getStreamer().SwitchSection(getContext().getELFSection(SectionName, Type, - Flags, Kind, false)); + Flags, Kind, false, + Size)); return false; } |