mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-05 06:41:51 +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
|
/// @name Data
|
||||||
/// @{
|
/// @{
|
||||||
private:
|
private:
|
||||||
LLVMContext& Context; ///< The context for global information
|
|
||||||
Module* Composite; ///< The composite module linked together
|
Module* Composite; ///< The composite module linked together
|
||||||
/// @}
|
/// @}
|
||||||
|
|
||||||
|
@ -21,11 +21,9 @@ using namespace llvm;
|
|||||||
|
|
||||||
Linker::Linker(StringRef modname,
|
Linker::Linker(StringRef modname,
|
||||||
LLVMContext& C):
|
LLVMContext& C):
|
||||||
Context(C),
|
|
||||||
Composite(new Module(modname, C)) { }
|
Composite(new Module(modname, C)) { }
|
||||||
|
|
||||||
Linker::Linker(Module* aModule) :
|
Linker::Linker(Module* aModule) :
|
||||||
Context(aModule->getContext()),
|
|
||||||
Composite(aModule) { }
|
Composite(aModule) { }
|
||||||
|
|
||||||
Linker::~Linker() {
|
Linker::~Linker() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user