diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-08 19:05:04 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-08 19:05:04 +0000 |
commit | 1c431b323d776362490bbf7cc796b74fedaf19f2 (patch) | |
tree | 9d3e0b286d5fa68a43e5b55ad768c72141f50e14 /lib/CodeGen/CGDecl.cpp | |
parent | a294ca8c64fbb345f32e4af9d8fabdf2f64e4883 (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | lib/CodeGen/CGDecl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/CodeGen/CGDecl.cpp b/lib/CodeGen/CGDecl.cpp index e3e7fd2103..8278e66e6d 100644 --- a/lib/CodeGen/CGDecl.cpp +++ b/lib/CodeGen/CGDecl.cpp @@ -104,10 +104,10 @@ CodeGenFunction::CreateStaticBlockVarDecl(const VarDecl &D, } const llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty); - return new llvm::GlobalVariable(CGM.getModule().getContext(), - LTy, Ty.isConstant(getContext()), Linkage, + return new llvm::GlobalVariable(CGM.getModule(), LTy, + Ty.isConstant(getContext()), Linkage, llvm::Constant::getNullValue(LTy), Name, - &CGM.getModule(), D.isThreadSpecified(), + 0, D.isThreadSpecified(), Ty.getAddressSpace()); } @@ -150,10 +150,10 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) { if (GV->getType() != Init->getType()) { llvm::GlobalVariable *OldGV = GV; - GV = new llvm::GlobalVariable(CGM.getModule().getContext(), - Init->getType(), OldGV->isConstant(), + GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), + OldGV->isConstant(), OldGV->getLinkage(), Init, "", - &CGM.getModule(), D.isThreadSpecified(), + 0, D.isThreadSpecified(), D.getType().getAddressSpace()); // Steal the name of the old global |