diff options
Diffstat (limited to 'include/llvm/MDNode.h')
-rw-r--r-- | include/llvm/MDNode.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/MDNode.h b/include/llvm/MDNode.h index 03275edcd5..d632e4ea4a 100644 --- a/include/llvm/MDNode.h +++ b/include/llvm/MDNode.h @@ -88,6 +88,10 @@ public: return Node.size(); } + bool elem_empty() const { + return Node.empty(); + } + const_elem_iterator elem_begin() const { return Node.begin(); } @@ -96,10 +100,10 @@ public: return Node.end(); } - /// getType() specialization - Type is always an empty struct. + /// getType() specialization - Type is always MetadataTy. /// inline const Type *getType() const { - return Type::EmptyStructTy; + return Type::MetadataTy; } /// isNullValue - Return true if this is the value that would be returned by |