Refactor common parts of MDNode::getFunction() and assertLocalFunction() into getFunc...
[oota-llvm.git] / include / llvm / Metadata.h
index f64978cab44a05fe156190f94c2dc577e3bce614..8766ea8003d455fb58448380da95066417dce2db 100644 (file)
@@ -156,7 +156,7 @@ public:
   // function-local operand, return the first such operand's parent function.
   // Otherwise, return null. getFunction() should not be used for performance-
   // critical code because it recursively visits all the MDNode's operands.  
-  Function *getFunction() const;
+  const Function *getFunction() const;
 
   // destroy - Delete this node.  Only when there are no uses.
   void destroy();