mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
BitcodeWriter: Simplify. NFC.
llvm-svn: 268707
This commit is contained in:
parent
df9c65f029
commit
641f044ff8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user