diff options
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r-- | include/llvm/GlobalVariable.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index ac72b77..a578cd1 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -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. /// |