diff options
author | Chris Lattner <sabre@nondot.org> | 2006-07-14 19:37:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-07-14 19:37:01 +0000 |
commit | 79ce587cda552abf85f02282cf6cfe36afcaafd8 (patch) | |
tree | a0f878f9f9554aa76a24bf734b83a9e2a76dfb25 | |
parent | c1be492f94da7e53eef408c346b25c551c6bdf07 (diff) |
Add a new method for bugpoint to use.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29142 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Constants.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index cce4d49d1f..7a1b493c19 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -614,6 +614,11 @@ public: /// getOpcodeName - Return a string representation for an opcode. const char *getOpcodeName() const; + /// getWithOperandReplaced - Return a constant expression identical to this + /// one, but with the specified operand set to the specified value. + Constant *getWithOperandReplaced(unsigned OpNo, Constant *Op) const; + + virtual void destroyConstant(); virtual void replaceUsesOfWithOnConstant(Value *From, Value *To, Use *U); |