llvm-6502/lib/VMCore
Torok Edwin 2cd5155c0e Free the constants that have no uses in ~LLVMContext.
This fixes leaks from LLVMContext in multithreaded apps.
Since constants are only deleted if they have no uses, it is safe to not delete
a Module on shutdown, as many single-threaded tools do.
Multithreaded apps should however delete the Module before destroying the
Context to ensure that there are no leaks (assuming they use a different context
for each thread).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80590 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-31 16:14:59 +00:00
..
AsmWriter.cpp
Attributes.cpp Add an 'inline hint' attribute to represent source 2009-08-26 01:08:21 +00:00
AutoUpgrade.cpp Reapply 79977. 2009-08-28 23:24:31 +00:00
BasicBlock.cpp
CMakeLists.txt
ConstantFold.cpp Cleanup whitespace and indentation. 2009-08-29 23:35:16 +00:00
ConstantFold.h
Constants.cpp
ConstantsContext.h Free the constants that have no uses in ~LLVMContext. 2009-08-31 16:14:59 +00:00
Core.cpp
Dominators.cpp
Function.cpp
Globals.cpp
InlineAsm.cpp
Instruction.cpp This should use isIndenticalToWhenDefined. 2009-08-25 22:24:20 +00:00
Instructions.cpp Fix the InsertAtEnd form of ShuffleVectorInst constructor to use 2009-08-25 23:27:45 +00:00
IntrinsicInst.cpp
LeakDetector.cpp Kill off more cerr/cout uses and prune includes a bit. 2009-08-23 11:37:21 +00:00
LeaksContext.h
LLVMContext.cpp
LLVMContextImpl.h Free the constants that have no uses in ~LLVMContext. 2009-08-31 16:14:59 +00:00
Makefile
Mangler.cpp
Metadata.cpp Remove an entry from ValueMap before removing elements. 2009-08-27 15:32:38 +00:00
Module.cpp
ModuleProvider.cpp
Pass.cpp Remove some unused fields. 2009-08-29 23:34:14 +00:00
PassManager.cpp Kill off more cerr/cout uses and prune includes a bit. 2009-08-23 11:37:21 +00:00
PrintModulePass.cpp
SymbolTableListTraitsImpl.h
Type.cpp Free the constants that have no uses in ~LLVMContext. 2009-08-31 16:14:59 +00:00
TypesContext.h Free the constants that have no uses in ~LLVMContext. 2009-08-31 16:14:59 +00:00
TypeSymbolTable.cpp Kill off more cerr/cout uses and prune includes a bit. 2009-08-23 11:37:21 +00:00
Use.cpp
Value.cpp Teach getUnderlyingObject and skipPointerCasts about GlobalAliases. 2009-08-27 17:55:13 +00:00
ValueSymbolTable.cpp
ValueTypes.cpp Reapply 79977. 2009-08-28 23:24:31 +00:00
Verifier.cpp Kill off more cerr/cout uses and prune includes a bit. 2009-08-23 11:37:21 +00:00