Add a 'deleteModule' method to the Linker class.
authorBill Wendling <isanbard@gmail.com>
Wed, 16 Oct 2013 08:59:57 +0000 (08:59 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 16 Oct 2013 08:59:57 +0000 (08:59 +0000)
commitb4a0ba17183e1b4aa385e81e896c2a95671a40b2
tree7fbdee4c9c414fe320011f76730b3673c111c8b5
parent32c24da3730e8e5ea7df3ce7aeffa257b2e7f02f
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
include/llvm/Linker.h
lib/LTO/LTOCodeGenerator.cpp
lib/Linker/LinkModules.cpp