diff options
Diffstat (limited to 'include')
-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 11afa40..ba4caeb 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 bcaa56e..8072fd9 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, |