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)
commitb4bc424c9acd787fbfcd1506aadd6e49113f6b1c
tree9c2ce064903e369eb131334f15d93d259e2a7bbd
parentf95da49f25fcccc9a3dd515d0ef0d6493e5f5e2a
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>
llvm-svn: 243083
17 files changed:
llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
llvm/examples/Kaleidoscope/Orc/initial/toy.cpp
llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp
llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp
llvm/include/llvm/Target/TargetMachine.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/lib/ExecutionEngine/MCJIT/MCJIT.cpp
llvm/lib/ExecutionEngine/Orc/OrcMCJITReplacement.h
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/LTO/LTOModule.cpp
llvm/lib/Target/Sparc/SparcISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/TargetMachineC.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/tools/llc/llc.cpp
llvm/tools/lli/OrcLazyJIT.cpp
llvm/tools/lli/OrcLazyJIT.h