1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00
llvm-mirror/examples/Kaleidoscope
Rafael Espindola 1b07b35205 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.

llvm-svn: 202204
2014-02-25 23:25:17 +00:00
..
Chapter2 [weak vtables] Place class definitions into anonymous namespaces to prevent weak vtables. 2013-11-19 03:08:35 +00:00
Chapter3 [cleanup] Fix the includes in the examples for r199082. 2014-01-13 09:53:45 +00:00
Chapter4 Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Chapter5 Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Chapter6 Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
Chapter7 Use DataLayout from the module when easily available. 2014-02-25 23:25:17 +00:00
MCJIT [cleanup] Re-sort the examples #include lines with my sort_includes 2014-01-13 09:58:03 +00:00
CMakeLists.txt Add examples for Kaleidoscope chapters 2 through 6. 2009-09-22 21:15:19 +00:00
Makefile Add examples for Kaleidoscope chapters 2 through 6. 2009-09-22 21:15:19 +00:00