diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2016-05-06 02:41:23 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2016-05-06 02:41:23 +0000 |
commit | 832e7fa5794bb2259cb39006b58000ee5d56fa07 (patch) | |
tree | 83a9ae51b344bef8850212b0856c376cd23076a7 /llvm/lib/Bitcode | |
parent | 05e772b36b929686c71f0c5f3c6e52cdae5d9ff2 (diff) | |
download | bcm5719-llvm-832e7fa5794bb2259cb39006b58000ee5d56fa07.tar.gz bcm5719-llvm-832e7fa5794bb2259cb39006b58000ee5d56fa07.zip |
BitcodeWriter: Simplify. NFC.
llvm-svn: 268707
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 9fb5d66a5ac..82e2cab6056 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -3121,10 +3121,8 @@ void ModuleBitcodeWriter::writePerModuleGlobalValueSummary() { report_fatal_error("Unexpected anonymous function when writing summary"); auto *Summary = Index->getGlobalValueSummary(F); - writePerModuleFunctionSummaryRecord( - NameVals, Summary, - VE.getValueID(M.getValueSymbolTable().lookup(F.getName())), - FSCallsAbbrev, FSCallsProfileAbbrev, F); + writePerModuleFunctionSummaryRecord(NameVals, Summary, VE.getValueID(&F), + FSCallsAbbrev, FSCallsProfileAbbrev, F); } // Capture references from GlobalVariable initializers, which are outside |