summaryrefslogtreecommitdiff
path: root/include/llvm
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 /include/llvm
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 'include/llvm')
-rw-r--r--include/llvm/BasicBlock.h3
-rw-r--r--include/llvm/Constant.h4
2 files changed, 4 insertions, 3 deletions
diff --git a/include/llvm/BasicBlock.h b/include/llvm/BasicBlock.h
index 11afa40477..ba4caeb96a 100644
--- a/include/llvm/BasicBlock.h
+++ b/include/llvm/BasicBlock.h
@@ -241,9 +241,6 @@ public:
/// other than direct branches, switches, etc. to it.
bool hasAddressTaken() const { return SubclassData != 0; }
- /// removeDeadBlockAddress - If there is a blockaddress node for this basic
- /// block, try to remove it and any dead constant users of it.
- void removeDeadBlockAddress();
private:
/// AdjustBlockAddressRefCount - BasicBlock stores the number of BlockAddress
/// objects using it. This is almost always 0, sometimes one, possibly but
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h
index bcaa56e390..8072fd9f49 100644
--- a/include/llvm/Constant.h
+++ b/include/llvm/Constant.h
@@ -65,6 +65,10 @@ public:
/// true for things like constant expressions that could divide by zero.
bool canTrap() const;
+ /// isConstantUsed - Return true if the constant has users other than constant
+ /// exprs and other dangling things.
+ bool isConstantUsed() const;
+
enum PossibleRelocationsTy {
NoRelocation = 0,
LocalRelocation = 1,