diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-01 18:11:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-01 18:11:50 +0000 |
commit | 4a7642ec9c33bcf8ed65231f382fb6d9a0f46f3a (patch) | |
tree | f363990ceb57c9d4f1282fb1c3595fa9e155209e /include/llvm | |
parent | 076124ef26ff67f88663bd11f3b4d6b3d3bb3a9d (diff) | |
download | llvm-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.h | 3 | ||||
-rw-r--r-- | include/llvm/Constant.h | 4 |
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, |