diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 16:19:32 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-05-21 16:19:32 +0000 |
| commit | beeacd158671ada5fa81b92a8a838899369b7e6a (patch) | |
| tree | f089a168f73d2072e1fb698145c524a899f7529e /llvm/lib/MC | |
| parent | 490aca92bea4439f8f59b994c9404f9baeeb5219 (diff) | |
| download | bcm5719-llvm-beeacd158671ada5fa81b92a8a838899369b7e6a.tar.gz bcm5719-llvm-beeacd158671ada5fa81b92a8a838899369b7e6a.zip | |
Use existing helper for adding a section. NFC.
llvm-svn: 237909
Diffstat (limited to 'llvm/lib/MC')
| -rw-r--r-- | llvm/lib/MC/MCParser/ELFAsmParser.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/MC/MCParser/ELFAsmParser.cpp b/llvm/lib/MC/MCParser/ELFAsmParser.cpp index 9cee2e60696..d99a6c4836b 100644 --- a/llvm/lib/MC/MCParser/ELFAsmParser.cpp +++ b/llvm/lib/MC/MCParser/ELFAsmParser.cpp @@ -532,9 +532,7 @@ EndStmt: getStreamer().SwitchSection(ELFSection, Subsection); if (getContext().getGenDwarfForAssembly()) { - auto &Sections = getContext().getGenDwarfSectionSyms(); - auto InsertResult = Sections.insert( - std::make_pair(ELFSection, std::make_pair(nullptr, nullptr))); + auto InsertResult = getContext().addGenDwarfSection(ELFSection); if (InsertResult.second) { if (getContext().getDwarfVersion() <= 2) Warning(loc, "DWARF2 only supports one section per compilation unit"); |

