diff options
Diffstat (limited to 'include/llvm/Value.h')
-rw-r--r-- | include/llvm/Value.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Value.h b/include/llvm/Value.h index 864d490..ab6247e 100644 --- a/include/llvm/Value.h +++ b/include/llvm/Value.h @@ -298,6 +298,9 @@ public: const BasicBlock *PredBB) const{ return const_cast<Value*>(this)->DoPHITranslation(CurBB, PredBB); } + + /// hasMetadata - Return true if metadata is attached with this value. + bool hasMetadata() const { return HasMetadata; } }; inline raw_ostream &operator<<(raw_ostream &OS, const Value &V) { |