diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-10-16 08:59:57 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-10-16 08:59:57 +0000 |
commit | b4a0ba17183e1b4aa385e81e896c2a95671a40b2 (patch) | |
tree | 7fbdee4c9c414fe320011f76730b3673c111c8b5 /include | |
parent | 32c24da3730e8e5ea7df3ce7aeffa257b2e7f02f (diff) | |
download | external_llvm-b4a0ba17183e1b4aa385e81e896c2a95671a40b2.zip external_llvm-b4a0ba17183e1b4aa385e81e896c2a95671a40b2.tar.gz external_llvm-b4a0ba17183e1b4aa385e81e896c2a95671a40b2.tar.bz2 |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Linker.h b/include/llvm/Linker.h index 3667b85..4f37459 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. |