llvm-6502/examples
Rafael Espindola 356deb5ecd Use DataLayout from the module when easily available.
Eventually DataLayoutPass should go away, but for now that is the only easy
way to get a DataLayout in some APIs. This patch only changes the ones that
have easy access to a Module.

One interesting issue with sometimes using DataLayoutPass and sometimes
fetching it from the Module is that we have to make sure they are equivalent.
We can get most of the way there by always constructing the pass with a Module.
In fact, the pass could be changed to point to an external DataLayout instead
of owning one to make this stricter.

Unfortunately, the C api passes a DataLayout, so it has to be up to the caller
to make sure the pass and the module are in sync.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202204 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-25 23:25:17 +00:00
..
BrainF Replace the F_Binary flag with a F_Text one. 2014-02-24 18:20:12 +00:00
ExceptionDemo Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Fibonacci [cleanup] Fix the includes in the examples for r199082. 2014-01-13 09:53:45 +00:00
HowToUseJIT [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
Kaleidoscope Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
ModuleMaker [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
OCaml-Kaleidoscope
ParallelJIT [CMake] Update LLVM_LINK_COMPONENTS for each CMakeLists.txt. 2013-12-10 11:13:32 +00:00
CMakeLists.txt Don't try to build ExceptionDemo on ARM. 2014-02-12 21:47:15 +00:00
LLVMBuild.txt
Makefile