diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2015-11-23 01:59:16 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2015-11-23 01:59:16 +0000 |
commit | 8220e8a830dc5c62142c1c36bffd4d2d7dbc5960 (patch) | |
tree | eb0c427edcd23f4104961896184ac2e335850ab9 /llvm/lib/Linker/LinkModules.cpp | |
parent | ededfce1b782e9e83cc497e68d2c52352b4f3775 (diff) | |
download | bcm5719-llvm-8220e8a830dc5c62142c1c36bffd4d2d7dbc5960.tar.gz bcm5719-llvm-8220e8a830dc5c62142c1c36bffd4d2d7dbc5960.zip |
Add const qualifier for FunctionInfoIndex in ModuleLinker and linkInModule() (NFC)
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 253840
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 7649d13929f..f97bbe5a8e5 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -428,7 +428,7 @@ class ModuleLinker { /// Function index passed into ModuleLinker for using in function /// importing/exporting handling. - FunctionInfoIndex *ImportIndex; + const FunctionInfoIndex *ImportIndex; /// Function to import from source module, all other functions are /// imported as declarations instead of definitions. @@ -448,7 +448,7 @@ class ModuleLinker { public: ModuleLinker(Module *dstM, Linker::IdentifiedStructTypeSet &Set, Module *srcM, DiagnosticHandlerFunction DiagnosticHandler, unsigned Flags, - FunctionInfoIndex *Index = nullptr, + const FunctionInfoIndex *Index = nullptr, Function *FuncToImport = nullptr) : DstM(dstM), SrcM(srcM), TypeMap(Set), ValMaterializer(TypeMap, DstM, LazilyLinkGlobalValues, this), @@ -2088,7 +2088,8 @@ void Linker::deleteModule() { Composite = nullptr; } -bool Linker::linkInModule(Module *Src, unsigned Flags, FunctionInfoIndex *Index, +bool Linker::linkInModule(Module *Src, unsigned Flags, + const FunctionInfoIndex *Index, Function *FuncToImport) { ModuleLinker TheLinker(Composite, IdentifiedStructTypes, Src, DiagnosticHandler, Flags, Index, FuncToImport); |