From: Rong Xu Date: Thu, 31 Mar 2016 17:39:33 +0000 (+0000) Subject: [PGO] use emplace_back. NFC. X-Git-Tag: llvmorg-3.9.0-rc1~10367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d5a57b5947d690d25c19197e4d0ad70e06d7804e;p=platform%2Fupstream%2Fllvm.git [PGO] use emplace_back. NFC. Use emplace_back instead of push_back for simplicity. llvm-svn: 265030 --- diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index fa15170..4a023f7 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -180,7 +180,7 @@ void InstrProfSymtab::create(Module &M, bool InLTO) { continue; const std::string &PGOFuncName = getPGOFuncName(F, InLTO); addFuncName(PGOFuncName); - MD5FuncMap.push_back(std::make_pair(Function::getGUID(PGOFuncName), &F)); + MD5FuncMap.emplace_back(Function::getGUID(PGOFuncName), &F); } finalizeSymtab();