summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-10-16 08:59:57 +0000
committerBill Wendling <isanbard@gmail.com>2013-10-16 08:59:57 +0000
commitb4a0ba17183e1b4aa385e81e896c2a95671a40b2 (patch)
tree7fbdee4c9c414fe320011f76730b3673c111c8b5 /include
parent32c24da3730e8e5ea7df3ce7aeffa257b2e7f02f (diff)
downloadllvm-b4a0ba17183e1b4aa385e81e896c2a95671a40b2.tar.gz
llvm-b4a0ba17183e1b4aa385e81e896c2a95671a40b2.tar.bz2
llvm-b4a0ba17183e1b4aa385e81e896c2a95671a40b2.tar.xz
Add a 'deleteModule' method to the Linker class.
This deletes the Module ivar instead of having the LTO code generater do it. It also sets the pointer to 'NULL', so that if it's used again it will abort quickly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192778 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Linker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Linker.h b/include/llvm/Linker.h
index 3667b8521d..4f37459eb4 100644
--- a/include/llvm/Linker.h
+++ b/include/llvm/Linker.h
@@ -32,7 +32,9 @@ class Linker {
Linker(Module *M);
~Linker();
+
Module *getModule() const { return Composite; }
+ void deleteModule();
/// \brief Link \p Src into the composite. The source is destroyed if
/// \p Mode is DestroySource and preserved if it is PreserveSource.