Revert the part of 75177 that split ConstantRange into two classes, and
[oota-llvm.git] / include / llvm / MDNode.h
index 03275edcd5a01159260ec98e4d918029c6bb5ed2..d632e4ea4a6fb9037418c9961879e1dfcba7d64d 100644 (file)
@@ -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