Redirect pointerSize query to the TargetMachine in ASMPrinter
authorMehdi Amini <mehdi.amini@apple.com>
Thu, 16 Jul 2015 05:59:25 +0000 (05:59 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Thu, 16 Jul 2015 05:59:25 +0000 (05:59 +0000)
commit24e2a7c43fca24e17b32177a49d1cccd18b54e9a
tree34072bd6de55c6f9fa587a52a797766e5d71cb57
parent45646075c35b26055b136870c919de950b886032
Redirect pointerSize query to the TargetMachine in ASMPrinter

Summary:
Because llvm-dsymutil is using ASMPrinter without any MachineFunction
of Module available.

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: yaron.keren, rafael, llvm-commits

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242384 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DIE.cpp