Update the NoFolder to work with current IRBuilder.
[oota-llvm.git] / include / llvm / Value.h
index df610aa7bd15cdebc9177d5795c9410146b7db9d..130e2735f525b565e20d15975a178d0781bb0065 100644 (file)
@@ -195,7 +195,7 @@ public:
 
   /// addUse - This method should only be used by the Use class.
   ///
-  void addUse(Use &U);
+  void addUse(Use &U) { U.addToList(&UseList); }
 
   /// An enumeration for keeping track of the concrete subclass of Value that
   /// is actually instantiated. Values of this enumeration are kept in the 
@@ -252,6 +252,12 @@ public:
     return SubclassOptionalData;
   }
 
+  /// clearSubclassOptionalData - Clear the optional flags contained in
+  /// this value.
+  void clearSubclassOptionalData() {
+    SubclassOptionalData = 0;
+  }
+
   /// hasSameSubclassOptionalData - Test whether the optional flags contained
   /// in this value are equal to the optional flags in the given value.
   bool hasSameSubclassOptionalData(const Value *V) const {