summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gold/gold-plugin.cpp
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-10-19 19:06:06 +0000
committerTeresa Johnson <tejohnson@google.com>2015-10-19 19:06:06 +0000
commit3da931f87a11de769e27f5687db5a45c90a9a12e (patch)
treeb9a8c8ab7847bd286749d38cd38be3741eccecdb /llvm/tools/gold/gold-plugin.cpp
parent2b9e24c02c927777f4de848243d1c4f1b0307201 (diff)
downloadbcm5719-llvm-3da931f87a11de769e27f5687db5a45c90a9a12e.tar.gz
bcm5719-llvm-3da931f87a11de769e27f5687db5a45c90a9a12e.zip
Pass FunctionInfoIndex by reference to WriteFunctionSummaryToFile (NFC)
Implemented suggestion by dblakie in review for r250704. llvm-svn: 250723
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index bb718f708cc..062f746c8fc 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -914,7 +914,7 @@ static ld_plugin_status allSymbolsReadHook(raw_fd_ostream *ApiFile) {
if (EC)
message(LDPL_FATAL, "Unable to open %s.thinlto.bc for writing: %s",
output_name.data(), EC.message().c_str());
- WriteFunctionSummaryToFile(&CombinedIndex, OS);
+ WriteFunctionSummaryToFile(CombinedIndex, OS);
OS.close();
cleanup_hook();
OpenPOWER on IntegriCloud