Redirect DataLayout from TargetMachine to Module in CodeGen Prepare
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 7 Jul 2015 18:45:17 +0000 (18:45 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 7 Jul 2015 18:45:17 +0000 (18:45 +0000)
commitd888ac430d71983b4484999c3651641964d0d702
tree54095ebacf41b2d8fa82ce35f8f99fa05eeb3360
parent26a2a4b4ed98c11c84eeb2cae13128ccc10bd1c9
Redirect DataLayout from TargetMachine to Module in CodeGen Prepare

Summary:
This change is part 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: llvm-commits

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241614 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp