Remove getDataLayout() from Instruction/GlobalValue/BasicBlock/Function
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 3 Mar 2015 22:01:13 +0000 (22:01 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 3 Mar 2015 22:01:13 +0000 (22:01 +0000)
commita716c07147b6c2674a3c0a8008f13abec4055baa
treeadbc31118960d4f1518dbc55624ad98761d0d723
parent7cecca6011776663d63d5b1b0900504aac62d0d5
Remove getDataLayout() from Instruction/GlobalValue/BasicBlock/Function

Summary:
This does not conceptually belongs here. Instead provide a shortcut
getModule() that provides access to the DataLayout.

Reviewers: chandlerc, echristo

Reviewed By: echristo

Subscribers: llvm-commits

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231147 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/BasicBlock.h
include/llvm/IR/GlobalValue.h
include/llvm/IR/Instruction.h
lib/Analysis/IPA/InlineCost.cpp
lib/Analysis/Loads.cpp
lib/IR/BasicBlock.cpp
lib/IR/Globals.cpp
lib/IR/Instruction.cpp