[llvm] r254436 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 1 10:50:35 PST 2015
Author: rafael
Date: Tue Dec 1 12:50:35 2015
New Revision: 254436
URL: http://llvm.org/viewvc/llvm-project?rev=254436&view=rev
Log:
Delete dead code.
Modified:
llvm/trunk/include/llvm/Linker/Linker.h
llvm/trunk/lib/Linker/LinkModules.cpp
Modified: llvm/trunk/include/llvm/Linker/Linker.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Linker/Linker.h?rev=254436&r1=254435&r2=254436&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Linker/Linker.h (original)
+++ llvm/trunk/include/llvm/Linker/Linker.h Tue Dec 1 12:50:35 2015
@@ -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
Modified: llvm/trunk/lib/Linker/LinkModules.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Linker/LinkModules.cpp?rev=254436&r1=254435&r2=254436&view=diff
==============================================================================
--- llvm/trunk/lib/Linker/LinkModules.cpp (original)
+++ llvm/trunk/lib/Linker/LinkModules.cpp Tue Dec 1 12:50:35 2015
@@ -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) {
More information about the llvm-commits
mailing list