diff --git a/include/llvm/Linker.h b/include/llvm/Linker.h index a398e1233a4..6761b8e68ed 100644 --- a/include/llvm/Linker.h +++ b/include/llvm/Linker.h @@ -111,7 +111,6 @@ class Linker { /// @name Data /// @{ private: - LLVMContext& Context; ///< The context for global information Module* Composite; ///< The composite module linked together /// @} diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp index f8bf21e5ea8..c80f8173c3f 100644 --- a/lib/Linker/Linker.cpp +++ b/lib/Linker/Linker.cpp @@ -21,11 +21,9 @@ using namespace llvm; Linker::Linker(StringRef modname, LLVMContext& C): - Context(C), Composite(new Module(modname, C)) { } Linker::Linker(Module* aModule) : - Context(aModule->getContext()), Composite(aModule) { } Linker::~Linker() {