From 6de8ffbbc91bd750fa7212d3cbc4211341ef817e Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Sat, 23 Jun 2012 12:14:23 +0000 Subject: Clean-up after r159077. Remove temporary GlobalVariable constructors now that Clang has been updated (r159078). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159079 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/GlobalVariable.h | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'include') diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index fbb708b26b..99b7a73b35 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -58,30 +58,18 @@ public: LocalExecTLSModel }; - // TODO: Remove these once Clang is updated. - GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage, - Constant *Initializer = 0, const Twine &Name = "", - bool ThreadLocal = false, unsigned AddressSpace = 0); - GlobalVariable(Module &M, Type *Ty, bool isConstant, - LinkageTypes Linkage, Constant *Initializer, - const Twine &Name = "", - GlobalVariable *InsertBefore = 0, bool ThreadLocal = false, - unsigned AddressSpace = 0); - /// GlobalVariable ctor - If a parent module is specified, the global is /// automatically inserted into the end of the specified modules global list. - // TODO: Put default param values back when ctors above are removed. GlobalVariable(Type *Ty, bool isConstant, LinkageTypes Linkage, - Constant *Initializer, const Twine &Name, - ThreadLocalMode, unsigned AddressSpace = 0); + Constant *Initializer = 0, const Twine &Name = "", + ThreadLocalMode = NotThreadLocal, unsigned AddressSpace = 0); /// GlobalVariable ctor - This creates a global and inserts it before the /// specified other global. - // TODO: Put default param values back when ctors above are removed. GlobalVariable(Module &M, Type *Ty, bool isConstant, LinkageTypes Linkage, Constant *Initializer, - const Twine &Name, - GlobalVariable *InsertBefore, - ThreadLocalMode, + const Twine &Name = "", + GlobalVariable *InsertBefore = 0, + ThreadLocalMode = NotThreadLocal, unsigned AddressSpace = 0); ~GlobalVariable() { -- cgit v1.2.3-70-g09d2