Forgot to commit this file.
[oota-llvm.git] / include / llvm / Function.h
index 5dd8502d3ab33510fab4fbfaa1bf1c0a7f09b5cf..ef824579262f0afa4d1f9a6e7c1b07ed781b688c 100644 (file)
@@ -204,6 +204,10 @@ public:
     return paramHasAttr(1, ParamAttr::StructRet);
   }
 
+  /// copyAttributesFrom - copy all additional attributes (those not needed to
+  /// create a Function) from the Function Src to this one.
+  void copyAttributesFrom(const GlobalValue *Src);
+
   /// deleteBody - This method deletes the body of the function, and converts
   /// the linkage to external.
   ///