aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCParser/ELFAsmParser.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2015-05-21 16:52:32 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2015-05-21 16:52:32 +0000
commite07467901bd01aab87614890ef240e19f4ff3f4b (patch)
treec0ac8cb4ec60de1c50b619323a19a0166819293d /llvm/lib/MC/MCParser/ELFAsmParser.cpp
parentcc672026cb37aefe6bd5fa6a0ba32e034345017d (diff)
downloadllvm-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.cpp6
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);
}
}