mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
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@243114 91177308-0d34-0410-b5e6-96231b3b80d8
//===----------------------------------------------------------------------===/ // Kaleidoscope with Orc - Initial Version //===----------------------------------------------------------------------===// This version of Kaleidoscope with Orc demonstrates lazy code-generation. Unlike the first Kaleidoscope-Orc tutorial, where code-gen was performed as soon as modules were added to the JIT, this tutorial adds a LazyEmittingLayer to defer code-generation until modules are actually referenced. All IR-generation is still performed up-front. This directory contain a Makefile that allow the code to be built in a standalone manner, independent of the larger LLVM build infrastructure. To build the program you will need to have 'clang++' and 'llvm-config' in your path.