summaryrefslogtreecommitdiff
path: root/lib/VMCore/Globals.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-01 18:11:50 +0000
committerChris Lattner <sabre@nondot.org>2009-11-01 18:11:50 +0000
commit4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a (patch)
treef363990ceb57c9d4f1282fb1c3595fa9e155209e /lib/VMCore/Globals.cpp
parent076124ef26ff67f88663bd11f3b4d6b3d3bb3a9d (diff)
downloadllvm-4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a.tar.gz
llvm-4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a.tar.bz2
llvm-4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a.tar.xz
the verifier shouldn't modify the IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Globals.cpp')
-rw-r--r--lib/VMCore/Globals.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/VMCore/Globals.cpp b/lib/VMCore/Globals.cpp
index 763fc721e0..03ceecb6f1 100644
--- a/lib/VMCore/Globals.cpp
+++ b/lib/VMCore/Globals.cpp
@@ -75,13 +75,6 @@ void GlobalValue::removeDeadConstantUsers() const {
}
}
-/// removeDeadBlockAddress - If there is a blockaddress node for this basic
-/// block, try to remove it and any dead constant users of it.
-void BasicBlock::removeDeadBlockAddress() {
- if (!hasAddressTaken()) return;
- removeDeadUsersOfConstant(BlockAddress::get(this));
-}
-
/// Override destroyConstant to make sure it doesn't get called on
/// GlobalValue's because they shouldn't be treated like other constants.