summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-03-09 01:37:14 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-03-09 01:37:14 +0000
commitbd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6 (patch)
treeae2d6dd60808b11fc419bfc9a3ea373ffc6e2543 /llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
parent31a5ab9e3bfbf5a3a28a35d281cdacb98814786b (diff)
downloadbcm5719-llvm-bd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6.tar.gz
bcm5719-llvm-bd04e8fed6e89edb6a1c7b9da6dfe6b39564d6f6.zip
FunctionIndex is not optional for renameModuleForThinLTO(), make it a reference (NFC)
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 262976
Diffstat (limited to 'llvm/lib/Transforms/Utils/FunctionImportUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/FunctionImportUtils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
index b114ad094a1..73069b2c742 100644
--- a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
+++ b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp
@@ -90,7 +90,7 @@ std::string FunctionImportGlobalProcessing::getName(const GlobalValue *SGV) {
(doPromoteLocalToGlobal(SGV) || isPerformingImport()))
return FunctionInfoIndex::getGlobalNameForLocal(
SGV->getName(),
- ImportIndex->getModuleId(SGV->getParent()->getModuleIdentifier()));
+ ImportIndex.getModuleId(SGV->getParent()->getModuleIdentifier()));
return SGV->getName();
}
@@ -231,7 +231,7 @@ bool FunctionImportGlobalProcessing::run() {
return false;
}
-bool llvm::renameModuleForThinLTO(Module &M, const FunctionInfoIndex *Index) {
+bool llvm::renameModuleForThinLTO(Module &M, const FunctionInfoIndex &Index) {
FunctionImportGlobalProcessing ThinLTOProcessing(M, Index);
return ThinLTOProcessing.run();
}
OpenPOWER on IntegriCloud