diff options
Diffstat (limited to 'include/llvm/Constant.h')
-rw-r--r-- | include/llvm/Constant.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Constant.h b/include/llvm/Constant.h index bccd417..3dc5881 100644 --- a/include/llvm/Constant.h +++ b/include/llvm/Constant.h @@ -64,6 +64,10 @@ public: /// getNullValue. virtual bool isNullValue() const = 0; + /// isNegativeZeroValue - Return true if the value is what would be returned + /// by getZeroValueForNegation. + virtual bool isNegativeZeroValue() const { return isNullValue(); } + /// canTrap - Return true if evaluation of this constant could trap. This is /// true for things like constant expressions that could divide by zero. bool canTrap() const; |