1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
llvm-mirror/lib
Pete Cooper 7a5199df98 Add a doFinalization method to the DataLayout pass.
This pass is meant to be immutable, however it holds mutable state to cache StructLayouts.
This method will allow the pass manager to clear the mutable state between runs.

Note that unfortunately it is still necessary to have the destructor, even though it does the
same thing as doFinalization.  This is because most TargetMachines embed a DataLayout on which
doFinalization isn't run as its never added to the pass manager.

I also didn't think it was necessary to complication things with a deInit method for which
doFinalization and ~DataLayout both call as there's only one field of mutable state.  If we had
more fields to finalize i'd have added this.

llvm-svn: 176877
2013-03-12 17:37:31 +00:00
..
Analysis Small fix for cost analysis of ptrtoint. 2013-03-12 13:18:30 +00:00
Archive Fix auto_ptr is deprecated warnings 2013-02-26 21:20:35 +00:00
AsmParser Unify clang/llvm attributes for asan/tsan/msan (LLVM part) 2013-02-26 06:58:09 +00:00
Bitcode Simplify code. No functionality change. 2013-02-19 09:48:30 +00:00
CodeGen Remove support for versioned debug info. 2013-03-11 23:39:23 +00:00
DebugInfo Code cleanup: pass Offset by pointer to parseInstruction to more explicitly 2013-02-22 00:50:48 +00:00
ExecutionEngine Formatting, grammar 2013-02-20 18:24:34 +00:00
IR Add a doFinalization method to the DataLayout pass. 2013-03-12 17:37:31 +00:00
Linker Clean up out-of-date comments and some stray whitespace 2013-03-08 22:29:44 +00:00
MC Commit the right files for r176762. Sigh. 2013-03-09 09:32:16 +00:00
Object Move an assert earlier in a file and check that the result of 2013-02-28 20:26:17 +00:00
Option Resort the #include lines in include/... and lib/... with the 2013-01-02 10:22:59 +00:00
Support Remove an unused member variable from HelpPrinter. Move another member variable to be a local variable in the only method that uses it. 2013-03-09 23:29:37 +00:00
TableGen [TableGen] Fix ICE on MSVC 2012 Release builds. 2013-02-26 21:29:47 +00:00
Target Don't reserve R2 on Darwin/PPC 2013-03-12 15:18:14 +00:00
Transforms Change the order of the operands in patchAndReplaceAllUsesWith so 2013-03-12 16:22:56 +00:00
CMakeLists.txt Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00
LLVMBuild.txt Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00
Makefile Rename VMCore directory to IR. 2013-01-02 09:10:48 +00:00