Adding a collector name attribute to Function in the IR. These
[oota-llvm.git] / include / llvm / Function.h
index 20a43e285cfff021f35792936927e1f0563df6e9..ece095d38084637a04ca0ba7811bdb717b546987 100644 (file)
@@ -153,6 +153,13 @@ public:
   /// @brief Set the parameter attributes.
   void setParamAttrs(const ParamAttrsList *attrs);
 
+  /// hasCollector/getCollector/setCollector/clearCollector - The name of the
+  /// garbage collection algorithm to use during code generation.
+  bool hasCollector() const;
+  const char *getCollector() const;
+  void setCollector(const char *Str);
+  void clearCollector();
+
   /// @brief Determine whether the function has the given attribute.
   bool paramHasAttr(uint16_t i, ParameterAttributes attr) const {
     return ParamAttrs && ParamAttrs->paramHasAttr(i, attr);