[llvm] r257780 - Use std::map::insert instead of emplace for libstdc++ 4.7
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 14 10:03:30 PST 2016
Author: rnk
Date: Thu Jan 14 12:03:29 2016
New Revision: 257780
URL: http://llvm.org/viewvc/llvm-project?rev=257780&view=rev
Log:
Use std::map::insert instead of emplace for libstdc++ 4.7
Modified:
llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
Modified: llvm/trunk/tools/llvm-readobj/COFFDumper.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-readobj/COFFDumper.cpp?rev=257780&r1=257779&r2=257780&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-readobj/COFFDumper.cpp (original)
+++ llvm/trunk/tools/llvm-readobj/COFFDumper.cpp Thu Jan 14 12:03:29 2016
@@ -1053,7 +1053,7 @@ void COFFDumper::printCodeViewSymbolSect
StringRef LinkageName;
error(resolveSymbolName(Obj->getCOFFSection(Section), SectionOffset,
LinkageName));
- if (!FunctionFrameData.emplace(LinkageName, FD).second) {
+ if (!FunctionFrameData.insert(std::make_pair(LinkageName, FD)).second) {
error(object_error::parse_failed);
return;
}
More information about the llvm-commits
mailing list