Remove access to the DataLayout in the TargetMachine
authorMehdi Amini <mehdi.amini@apple.com>
Fri, 24 Jul 2015 01:44:39 +0000 (01:44 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Fri, 24 Jul 2015 01:44:39 +0000 (01:44 +0000)
commit0f720d984f419c747709462f7476dff962c0bc41
tree34305e85ac61e13f8873b0700e8f54b8e2ccdbdd
parent994d77147eb5ea54044188217ba8512fce8d1266
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
17 files changed:
examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
examples/Kaleidoscope/Orc/initial/toy.cpp
examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp
examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp
include/llvm/Target/TargetMachine.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/ExecutionEngine/MCJIT/MCJIT.cpp
lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
lib/LTO/LTOCodeGenerator.cpp
lib/LTO/LTOModule.cpp
lib/Target/Sparc/SparcISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/TargetMachineC.cpp
lib/Target/X86/X86ISelLowering.cpp
tools/llc/llc.cpp
tools/lli/OrcLazyJIT.cpp
tools/lli/OrcLazyJIT.h