diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-01 18:50:35 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-12-01 18:50:35 +0000 |
| commit | 3b80b8854c796b5cba30148061d5a3458b994d4b (patch) | |
| tree | 842535d7f7c1c58a8609c4f406b67ae357f98537 /llvm | |
| parent | 4dbdceb6fc4e2abb4861e04d5f36ed953f32a2be (diff) | |
| download | bcm5719-llvm-3b80b8854c796b5cba30148061d5a3458b994d4b.tar.gz bcm5719-llvm-3b80b8854c796b5cba30148061d5a3458b994d4b.zip | |
Delete dead code.
llvm-svn: 254436
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Linker/Linker.h | 1 | ||||
| -rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/llvm/include/llvm/Linker/Linker.h b/llvm/include/llvm/Linker/Linker.h index 7ac457856a1..e307e06f50b 100644 --- a/llvm/include/llvm/Linker/Linker.h +++ b/llvm/include/llvm/Linker/Linker.h @@ -72,7 +72,6 @@ public: Linker(Module *M); Module *getModule() const { return Composite; } - void deleteModule(); /// \brief Link \p Src into the composite. The source is destroyed. /// Passing OverrideSymbols as true will have symbols from Src diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 9aff43f3199..7ba622f6ee1 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/lib/Linker/LinkModules.cpp @@ -2051,11 +2051,6 @@ Linker::Linker(Module *M) Composite->getContext().diagnose(DI); }) {} -void Linker::deleteModule() { - delete Composite; - Composite = nullptr; -} - bool Linker::linkInModule(Module *Src, unsigned Flags, const FunctionInfoIndex *Index, Function *FuncToImport) { |

