Add a comment about ATTRIBUTE_UNUSED to avoid further confusion over when to
[oota-llvm.git] / include / llvm / Function.h
index 38822332c433a690033bae2f9cf880f8ce24898c..2b19fa5a7f38b8e8932cfd848fae2d7e1d8093b0 100644 (file)
@@ -409,8 +409,11 @@ public:
   void dropAllReferences();
 
   /// hasAddressTaken - returns true if there are any uses of this function
-  /// other than direct calls or invokes to it.
-  bool hasAddressTaken() const;
+  /// other than direct calls or invokes to it. Optionally passes back the
+  /// offending user for diagnostic purposes.
+  ///
+  bool hasAddressTaken(const User** = 0) const;
+
 private:
   // Shadow Value::setValueSubclassData with a private forwarding method so that
   // subclasses cannot accidentally use it.