summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2015-12-09 19:39:47 +0000
committerTeresa Johnson <tejohnson@google.com>2015-12-09 19:39:47 +0000
commit7f961e14d3d09ae0d53c4800d132720f7584812d (patch)
tree01341e2a1cd6dde7dd7fc5bf685237c00aee8ad7 /llvm/lib/Transforms
parentd58476da7988625446ae563d434a044c582a21f5 (diff)
downloadbcm5719-llvm-7f961e14d3d09ae0d53c4800d132720f7584812d.tar.gz
bcm5719-llvm-7f961e14d3d09ae0d53c4800d132720f7584812d.zip
[ThinLTO] FunctionImport pass can take a const index pointer (NFC)
llvm-svn: 255140
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index c6a70381e76..c9874fc3714 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -344,7 +344,7 @@ getFunctionIndexForFile(StringRef Path, std::string &Error,
class FunctionImportPass : public ModulePass {
/// Optional function summary index to use for importing, otherwise
/// the summary-file option must be specified.
- FunctionInfoIndex *Index;
+ const FunctionInfoIndex *Index;
public:
/// Pass identification, replacement for typeid
@@ -355,7 +355,7 @@ public:
return "Function Importing";
}
- explicit FunctionImportPass(FunctionInfoIndex *Index = nullptr)
+ explicit FunctionImportPass(const FunctionInfoIndex *Index = nullptr)
: ModulePass(ID), Index(Index) {}
bool runOnModule(Module &M) override {
@@ -394,7 +394,7 @@ INITIALIZE_PASS_END(FunctionImportPass, "function-import",
"Summary Based Function Import", false, false)
namespace llvm {
-Pass *createFunctionImportPass(FunctionInfoIndex *Index = nullptr) {
+Pass *createFunctionImportPass(const FunctionInfoIndex *Index = nullptr) {
return new FunctionImportPass(Index);
}
}
OpenPOWER on IntegriCloud