mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-01 01:30:36 +00:00
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:
parent
ae8f1f3fde
commit
bcc6ac93ba
@ -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…
x
Reference in New Issue
Block a user