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:
parent
4b25444049
commit
89ced966f0
@ -111,7 +111,6 @@ class Linker {
|
||||
/// @name Data
|
||||
/// @{
|
||||
private:
|
||||
LLVMContext& Context; ///< The context for global information
|
||||
Module* Composite; ///< The composite module linked together
|
||||
/// @}
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user