summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Globals.cpp
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2015-03-03 22:01:13 +0000
committerMehdi Amini <mehdi.amini@apple.com>2015-03-03 22:01:13 +0000
commit9a9738f6e5ecbd45bb2bc105d37570f045717152 (patch)
tree607649fe7f2d6f54383c72f31b0b4648c7cca6e7 /llvm/lib/IR/Globals.cpp
parent1dbe2e3dc4368a1985decfb180bd8e7290cd9f8e (diff)
downloadbcm5719-llvm-9a9738f6e5ecbd45bb2bc105d37570f045717152.tar.gz
bcm5719-llvm-9a9738f6e5ecbd45bb2bc105d37570f045717152.zip
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> llvm-svn: 231147
Diffstat (limited to 'llvm/lib/IR/Globals.cpp')
-rw-r--r--llvm/lib/IR/Globals.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/Globals.cpp b/llvm/lib/IR/Globals.cpp
index 54197d96763..5a6adb3f304 100644
--- a/llvm/lib/IR/Globals.cpp
+++ b/llvm/lib/IR/Globals.cpp
@@ -42,10 +42,6 @@ void GlobalValue::Dematerialize() {
getParent()->Dematerialize(this);
}
-const DataLayout *GlobalValue::getDataLayout() const {
- return getParent()->getDataLayout();
-}
-
/// Override destroyConstant to make sure it doesn't get called on
/// GlobalValue's because they shouldn't be treated like other constants.
void GlobalValue::destroyConstant() {
OpenPOWER on IntegriCloud