llvm-6502/examples/Kaleidoscope
Mehdi Amini 0f720d984f Remove access to the DataLayout in the TargetMachine
Summary:
Replace getDataLayout() with a createDataLayout() method to make
explicit that it is intended to create a DataLayout only and not
accessing it for other purpose.

This change is the last of a series of commits dedicated to have a
single DataLayout during compilation by using always the one owned
by the module.

Reviewers: echristo

Subscribers: jholewinski, llvm-commits, rafael, yaron.keren

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

(cherry picked from commit 5609fc56bca971e5a7efeaa6ca4676638eaec5ea)

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243083 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-24 01:44:39 +00:00
..
Chapter2 cmake: Add Kaleidoscope target 2015-01-06 23:39:37 +00:00
Chapter3 Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:11:45 +00:00
Chapter4 Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref 2015-07-16 16:47:18 +00:00
Chapter5 Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref 2015-07-16 16:47:18 +00:00
Chapter6 Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref 2015-07-16 16:47:18 +00:00
Chapter7 Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref 2015-07-16 16:47:18 +00:00
Chapter8 Fix Kaleidoscope tuto: ExecutionEngine->getDataLayout() returns a ref 2015-07-16 16:47:18 +00:00
MCJIT [Kaleidoscope] Fix incorrect use of reinterpret_cast. 2015-04-22 20:58:34 +00:00
Orc Remove access to the DataLayout in the TargetMachine 2015-07-24 01:44:39 +00:00
CMakeLists.txt Add CMake build support for Orc examples (& fix some clang -Werror build 2015-02-08 07:20:04 +00:00
Makefile