From c6cd4955cdd9643c7a3ad7eeb30713a8dcb503dc Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 1 Dec 2015 18:50:35 +0000 Subject: [PATCH] Delete dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254436 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Linker/Linker.h | 1 - lib/Linker/LinkModules.cpp | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/llvm/Linker/Linker.h b/include/llvm/Linker/Linker.h index 7ac457856a1..e307e06f50b 100644 --- a/include/llvm/Linker/Linker.h +++ b/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/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 9aff43f3199..7ba622f6ee1 100644 --- a/lib/Linker/LinkModules.cpp +++ b/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) { -- 2.34.1