diff options
Diffstat (limited to 'llvm/include/llvm/Constant.h')
-rw-r--r-- | llvm/include/llvm/Constant.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/include/llvm/Constant.h b/llvm/include/llvm/Constant.h index d4949d1a0ff..613e24ca151 100644 --- a/llvm/include/llvm/Constant.h +++ b/llvm/include/llvm/Constant.h @@ -61,7 +61,7 @@ protected: public: /// Static constructor to get a '0' constant of arbitrary type... /// - static Constant *getNullValue(const Type *Ty); + static Constant *getNullValue(const Type *Ty, bool locked = true); /// Static constructor to get a '-1' constant. This supports integers and /// vectors. @@ -107,7 +107,9 @@ public: /// available cached constants. Implementations should call /// destroyConstantImpl as the last thing they do, to destroy all users and /// delete this. - virtual void destroyConstant() { assert(0 && "Not reached!"); } + virtual void destroyConstant(bool locked = true) { + assert(0 && "Not reached!"); + } //// Methods for support type inquiry through isa, cast, and dyn_cast: static inline bool classof(const Constant *) { return true; } |