summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2016-03-31 17:39:33 +0000
committerRong Xu <xur@google.com>2016-03-31 17:39:33 +0000
commitd5a57b5947d690d25c19197e4d0ad70e06d7804e (patch)
treedc15f4f10da163684fcd0a278975490f1a304a88 /llvm
parent92d5ea5e07bf122b10500715cd74eed963cf56cc (diff)
downloadbcm5719-llvm-d5a57b5947d690d25c19197e4d0ad70e06d7804e.tar.gz
bcm5719-llvm-d5a57b5947d690d25c19197e4d0ad70e06d7804e.zip
[PGO] use emplace_back. NFC.
Use emplace_back instead of push_back for simplicity. llvm-svn: 265030
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/ProfileData/InstrProf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp
index fa15170ef6c..4a023f7b2ad 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();
OpenPOWER on IntegriCloud