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
This commit is contained in:
Rafael Espindola 2013-05-04 02:34:41 +00:00
parent ae8f1f3fde
commit bcc6ac93ba
2 changed files with 0 additions and 3 deletions

View File

@ -111,7 +111,6 @@ class Linker {
/// @name Data
/// @{
private:
LLVMContext& Context; ///< The context for global information
Module* Composite; ///< The composite module linked together
/// @}

View File

@ -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() {