diff options
| author | Hans Wennborg <hans@hanshq.net> | 2012-06-23 12:14:23 +0000 |
|---|---|---|
| committer | Hans Wennborg <hans@hanshq.net> | 2012-06-23 12:14:23 +0000 |
| commit | 6de8ffbbc91bd750fa7212d3cbc4211341ef817e (patch) | |
| tree | b88a4caf850b9cfbbebcc907d0758c4d89946a6a /include | |
| parent | ce718ff9f42c7da092eaa01dd0242e8d5ba84713 (diff) | |
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/llvm/GlobalVariable.h | 22 |
1 files changed, 5 insertions, 17 deletions
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() { |
