diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-04 02:43:00 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-05-04 02:43:00 +0000 |
commit | 105193772d84057493968310c1d1c6dd0f1ae735 (patch) | |
tree | 49b0aa2d644fe8c7bfb1555b783433b6c55fafcf /lib/Linker | |
parent | bcc6ac93bae207431efff90dfb3e741ffdf11469 (diff) | |
download | external_llvm-105193772d84057493968310c1d1c6dd0f1ae735.zip external_llvm-105193772d84057493968310c1d1c6dd0f1ae735.tar.gz external_llvm-105193772d84057493968310c1d1c6dd0f1ae735.tar.bz2 |
Don't construct or delete a module on the Linker.
The linker is now responsible only for actually linking the modules, it
is up to the clients to create and destroy them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker')
-rw-r--r-- | lib/Linker/Linker.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/Linker/Linker.cpp b/lib/Linker/Linker.cpp index c80f817..ab99b98 100644 --- a/lib/Linker/Linker.cpp +++ b/lib/Linker/Linker.cpp @@ -19,13 +19,8 @@ #include "llvm/Support/system_error.h" using namespace llvm; -Linker::Linker(StringRef modname, - LLVMContext& C): - Composite(new Module(modname, C)) { } - Linker::Linker(Module* aModule) : Composite(aModule) { } Linker::~Linker() { - delete Composite; } |