llvm-6502/lib
David Blaikie b86fbcb08c Simplify destruction of Modules in LLVContextImpl.
This avoids copying the container by simply deleting until empty.

While I'd rather move to a stricter ownership semantic (unique_ptr),
SmallPtrSet can't cope with unique_ptr and the ownership semantics here
are a bit incestuous (Module sort of owns itself, but sort of doesn't
(if the LLVMContext is destroyed before the Module, then it deregisters
itself from the context... )).

Ideally Modules would be given to the context, or possibly an
emplace-like function to construct them there. Modules then shouldn't be
destroyed by LLVM API clients, but by interacting with the owner
(LLVMContext) directly (but even then, passing a Module* to LLVMContext
doesn't provide an easy way to destroy the Module, since the set would
be over unique_ptrs and you'd need a heterogenous lookup function which
SmallPtrSet doesn't have either).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206794 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-21 21:27:19 +00:00
..
Analysis blockfreq: Some cleanup of UnsignedFloat 2014-04-21 18:31:58 +00:00
AsmParser [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-16 04:21:27 +00:00
Bitcode [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
CodeGen Use unique_ptr to handle ownership of UserValues in LiveDebugVariablesImpl 2014-04-21 20:37:07 +00:00
DebugInfo [llvm-symbolizer] Print file/line for a PC even if there is no DIE describing it. 2014-04-18 22:22:44 +00:00
ExecutionEngine Revert "[rtdyld,c++11] Range'ify symbol table walking." 2014-04-21 19:23:59 +00:00
IR Simplify destruction of Modules in LLVContextImpl. 2014-04-21 21:27:19 +00:00
IRReader [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LineEditor [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Linker [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-15 06:32:26 +00:00
LTO Remove some empty statements 2014-04-19 23:56:35 +00:00
MC Patch by Ray Donnelly to print register names instead of numbers. 2014-04-19 05:40:09 +00:00
Object Convert getFileOffset to getOffset and move it to its only user. 2014-04-21 13:45:32 +00:00
Option Protect the ArgList dtor 2014-04-20 23:59:00 +00:00
ProfileData ProfileData: Remove an extra semicolon 2014-04-19 23:42:50 +00:00
Support ManagedStatic is never built with a null constructor, remove support for it. 2014-04-17 20:30:35 +00:00
TableGen [C++11] Make use of 'nullptr' in TableGen library. 2014-04-09 04:50:04 +00:00
Target Handle _GLOBAL_OFFSET_TABLE_ in 64 bit mode. 2014-04-21 21:15:45 +00:00
Transforms Use unique_ptr to handle GlobalOpt's Evaluator members 2014-04-21 20:49:36 +00:00
CMakeLists.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
LLVMBuild.txt ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00
Makefile ProfileData: Introduce the InstrProfReader interface and a text reader 2014-03-21 17:24:48 +00:00