switch TypeHasCycleThroughItself from using an std::set to using a SmallPtrSet,
[oota-llvm.git] / include / llvm / GlobalVariable.h
index ac72b77e7659939fa9390bb309edfa1a06d10c53..a578cd1c090a6e8684caa64e32eae1903a25b7a4 100644 (file)
@@ -118,6 +118,10 @@ public:
   bool isThreadLocal() const { return isThreadLocalSymbol; }
   void setThreadLocal(bool Val) { isThreadLocalSymbol = Val; }
 
+  /// copyAttributesFrom - copy all additional attributes (those not needed to
+  /// create a GlobalVariable) from the GlobalVariable Src to this one.
+  void copyAttributesFrom(const GlobalValue *Src);
+
   /// removeFromParent - This method unlinks 'this' from the containing module,
   /// but does not delete it.
   ///