llvm-6502/lib/ExecutionEngine
Mehdi Amini c94da20917 Make DataLayout Non-Optional in the Module
Summary:
DataLayout keeps the string used for its creation.

As a side effect it is no longer needed in the Module.
This is "almost" NFC, the string is no longer
canonicalized, you can't rely on two "equals" DataLayout
having the same string returned by getStringRepresentation().

Get rid of DataLayoutPass: the DataLayout is in the Module

The DataLayout is "per-module", let's enforce this by not
duplicating it more than necessary.
One more step toward non-optionality of the DataLayout in the
module.

Make DataLayout Non-Optional in the Module

Module->getDataLayout() will never returns nullptr anymore.

Reviewers: echristo

Subscribers: resistor, llvm-commits, jholewinski

Differential Revision: http://reviews.llvm.org/D7992

From: Mehdi Amini <mehdi.amini@apple.com>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231270 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-04 18:43:29 +00:00
..
IntelJITEvents Move DebugInfo to DebugInfo/DWARF. 2015-01-30 18:07:45 +00:00
Interpreter Revert "Raising minimum required CMake version to 2.8.12.2." 2015-02-24 16:39:46 +00:00
MCJIT Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
OProfileJIT [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
Orc Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
RuntimeDyld Don't deference the section_end() iterator. 2015-02-17 20:07:28 +00:00
CMakeLists.txt [ExecutionEngine] Fix dependence issue by moving RTDyldMemoryManager into 2015-02-15 23:22:43 +00:00
EventListenerCommon.h Switch this header file to not hard-code Windows line endings. 2015-01-15 02:21:56 +00:00
ExecutionEngine.cpp Add missing includes. make_unique proliferated everywhere. 2015-03-01 21:28:53 +00:00
ExecutionEngineBindings.cpp [C API] Expose LLVMGetGlobalValueAddress and LLVMGetFunctionAddress. 2014-12-22 18:53:11 +00:00
GDBRegistrationListener.cpp [cleanup] Re-sort all the #include lines in LLVM using 2015-01-14 11:23:27 +00:00
LLVMBuild.txt [ExecutionEngine] Fix dependence issue by moving RTDyldMemoryManager into 2015-02-15 23:22:43 +00:00
Makefile [Orc] New JIT APIs. 2015-01-23 21:25:00 +00:00
SectionMemoryManager.cpp [Orc] Move SectionMemoryManager's implementation from MCJIT to ExecutionEngine. 2015-02-06 19:36:40 +00:00
TargetSelect.cpp Reinstate "Nuke the old JIT." 2014-09-02 22:28:02 +00:00