[llvm] r268707 - BitcodeWriter: Simplify. NFC.
Peter Collingbourne via llvm-commits
llvm-commits at lists.llvm.org
Thu May 5 19:41:23 PDT 2016
Author: pcc
Date: Thu May 5 21:41:23 2016
New Revision: 268707
URL: http://llvm.org/viewvc/llvm-project?rev=268707&view=rev
Log:
BitcodeWriter: Simplify. NFC.
Modified:
llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
Modified: llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp?rev=268707&r1=268706&r2=268707&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp (original)
+++ llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp Thu May 5 21:41:23 2016
@@ -3121,10 +3121,8 @@ void ModuleBitcodeWriter::writePerModule
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
More information about the llvm-commits
mailing list