diff options
Diffstat (limited to 'llvm/lib/VMCore/Globals.cpp')
-rw-r--r-- | llvm/lib/VMCore/Globals.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/VMCore/Globals.cpp b/llvm/lib/VMCore/Globals.cpp index ab1118dd0b1..61d9de3a231 100644 --- a/llvm/lib/VMCore/Globals.cpp +++ b/llvm/lib/VMCore/Globals.cpp @@ -81,11 +81,11 @@ void GlobalValue::destroyConstant() { //===----------------------------------------------------------------------===// GlobalVariable::GlobalVariable(const Type *Ty, bool constant, LinkageTypes Link, - Constant *InitVal, - const std::string &Name, Module *ParentModule) + Constant *InitVal, const std::string &Name, + Module *ParentModule, bool ThreadLocal) : GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal, &Initializer, InitVal != 0, Link, Name), - isConstantGlobal(constant) { + isConstantGlobal(constant), isThreadLocalSymbol(ThreadLocal) { if (InitVal) { assert(InitVal->getType() == Ty && "Initializer should be the same type as the GlobalVariable!"); @@ -101,11 +101,11 @@ GlobalVariable::GlobalVariable(const Type *Ty, bool constant, LinkageTypes Link, } GlobalVariable::GlobalVariable(const Type *Ty, bool constant, LinkageTypes Link, - Constant *InitVal, - const std::string &Name, GlobalVariable *Before) + Constant *InitVal, const std::string &Name, + GlobalVariable *Before, bool ThreadLocal) : GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal, &Initializer, InitVal != 0, Link, Name), - isConstantGlobal(constant) { + isConstantGlobal(constant), isThreadLocalSymbol(ThreadLocal) { if (InitVal) { assert(InitVal->getType() == Ty && "Initializer should be the same type as the GlobalVariable!"); |