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 | c10c8d3e2ba225e14891b5c93bd79760a575da88 (patch) | |
tree | f1d918d117e789ba331f222cc2928490bfd52f26 /clang/lib/CodeGen/CGDecl.cpp | |
parent | fa04002254ffd2b1ff480461fc9e06593d7d5a35 (diff) | |
download | bcm5719-llvm-c10c8d3e2ba225e14891b5c93bd79760a575da88.tar.gz bcm5719-llvm-c10c8d3e2ba225e14891b5c93bd79760a575da88.zip |
Update for LLVM API change.
llvm-svn: 75028
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGDecl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp index e3e7fd21038..8278e66e6dc 100644 --- a/clang/lib/CodeGen/CGDecl.cpp +++ b/clang/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 |