diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 16:52:32 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 16:52:32 +0000 |
commit | e07467901bd01aab87614890ef240e19f4ff3f4b (patch) | |
tree | c0ac8cb4ec60de1c50b619323a19a0166819293d /llvm/lib/MC/MCParser/ELFAsmParser.cpp | |
parent | cc672026cb37aefe6bd5fa6a0ba32e034345017d (diff) | |
download | llvm-e07467901bd01aab87614890ef240e19f4ff3f4b.zip llvm-e07467901bd01aab87614890ef240e19f4ff3f4b.tar.gz llvm-e07467901bd01aab87614890ef240e19f4ff3f4b.tar.bz2 |
Remove yet another method of creating begin and end symbol for sections.
I missed this one when first unifying how we handle begin and end symbols.
llvm-svn: 237912
Diffstat (limited to 'llvm/lib/MC/MCParser/ELFAsmParser.cpp')
-rw-r--r-- | llvm/lib/MC/MCParser/ELFAsmParser.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCParser/ELFAsmParser.cpp b/llvm/lib/MC/MCParser/ELFAsmParser.cpp index d99a6c48..6b0a778 100644 --- a/llvm/lib/MC/MCParser/ELFAsmParser.cpp +++ b/llvm/lib/MC/MCParser/ELFAsmParser.cpp @@ -532,14 +532,14 @@ EndStmt: getStreamer().SwitchSection(ELFSection, Subsection); if (getContext().getGenDwarfForAssembly()) { - auto InsertResult = getContext().addGenDwarfSection(ELFSection); - if (InsertResult.second) { + bool InsertResult = getContext().addGenDwarfSection(ELFSection); + if (InsertResult) { if (getContext().getDwarfVersion() <= 2) Warning(loc, "DWARF2 only supports one section per compilation unit"); MCSymbol *SectionStartSymbol = getContext().createTempSymbol(); getStreamer().EmitLabel(SectionStartSymbol); - InsertResult.first->second.first = SectionStartSymbol; + ELFSection->setBeginSymbol(SectionStartSymbol); } } |