diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2017-02-03 16:56:27 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2017-02-03 16:56:27 +0000 |
commit | 6d8f817f8ba88f4b240befa65554fcc406d22081 (patch) | |
tree | 0f3deb385757d613f755b66377b2caaea11358f2 /llvm/lib/Linker/LinkModules.cpp | |
parent | cce2d8028fe0bb2a71dd65a2ca377f3420bc3f23 (diff) | |
download | bcm5719-llvm-6d8f817f8ba88f4b240befa65554fcc406d22081.tar.gz bcm5719-llvm-6d8f817f8ba88f4b240befa65554fcc406d22081.zip |
FunctionImport: Use IRMover directly.
The importer was previously using ModuleLinker in a sort of "IRMover mode". Use
IRMover directly instead in order to remove a level of indirection.
I will remove all importing support from ModuleLinker in a separate
change.
Differential Revision: https://reviews.llvm.org/D29468
llvm-svn: 294014
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 7ff84db0702..eb9fdc10db2 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -129,8 +129,7 @@ public: bool ModuleLinker::doImportAsDefinition(const GlobalValue *SGV) { if (!isPerformingImport()) return false; - return FunctionImportGlobalProcessing::doImportAsDefinition(SGV, - GlobalsToImport); + report_fatal_error("ModuleLinker does not support importing"); } static GlobalValue::VisibilityTypes |