llvm-project/llvm/lib/ExecutionEngine/Orc
Mehdi Amini 46a43556db 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>
llvm-svn: 231270
2015-03-04 18:43:29 +00:00
..
CMakeLists.txt Use ADDITIONAL_HEADER_DIRS in all LLVM CMake projects. 2015-02-11 03:28:02 +00:00
CloneSubModule.cpp [Orc] Move Orc code into a namespace (llvm::orc), update Kaleidoscope code. 2015-02-21 20:44:36 +00:00
IndirectionUtils.cpp Add missing includes. make_unique proliferated everywhere. 2015-03-01 21:28:53 +00:00
LLVMBuild.txt Orc/LLVMBuild.txt: Prune redundant "Target" in libdeps. 2015-01-25 11:41:41 +00:00
Makefile
OrcMCJITReplacement.cpp [Orc] Move Orc code into a namespace (llvm::orc), update Kaleidoscope code. 2015-02-21 20:44:36 +00:00
OrcMCJITReplacement.h Make DataLayout Non-Optional in the Module 2015-03-04 18:43:29 +00:00
OrcTargetSupport.cpp [Orc] Move Orc code into a namespace (llvm::orc), update Kaleidoscope code. 2015-02-21 20:44:36 +00:00