1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Don't store the context in the Linker.

llvm-svn: 181097
This commit is contained in:
Rafael Espindola 2013-05-04 02:34:41 +00:00
parent 4b25444049
commit 89ced966f0
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() {