From bcc6ac93bae207431efff90dfb3e741ffdf11469 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sat, 4 May 2013 02:34:41 +0000 Subject: [PATCH] Don't store the context in the Linker. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181097 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Linker.h | 1 - lib/Linker/Linker.cpp | 2 -- 2 files changed, 3 deletions(-) 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() { -- 2.34.1