mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-26 14:25:18 +00:00
BitcodeWriter: Simplify. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4714294593
commit
7a3e4d658c
@ -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…
x
Reference in New Issue
Block a user