summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDecl.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-08 01:29:18 +0000
committerOwen Anderson <resistor@mac.com>2009-07-08 01:29:18 +0000
commit9f211fb4fac722ef78d173f1611b02ea3726d8c5 (patch)
treee71d35d0c5be800d14e860d0acddf78c62a8d9af /clang/lib/CodeGen/CGDecl.cpp
parent5948fdf68b5a1a68e8dbc10d28ef77473d5fc774 (diff)
downloadbcm5719-llvm-9f211fb4fac722ef78d173f1611b02ea3726d8c5.tar.gz
bcm5719-llvm-9f211fb4fac722ef78d173f1611b02ea3726d8c5.zip
Update for LLVM API change.
llvm-svn: 74986
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
-rw-r--r--clang/lib/CodeGen/CGDecl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGDecl.cpp b/clang/lib/CodeGen/CGDecl.cpp
index 2ae7e225ebb..e3e7fd21038 100644
--- a/clang/lib/CodeGen/CGDecl.cpp
+++ b/clang/lib/CodeGen/CGDecl.cpp
@@ -104,7 +104,8 @@ CodeGenFunction::CreateStaticBlockVarDecl(const VarDecl &D,
}
const llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty);
- return new llvm::GlobalVariable(LTy, Ty.isConstant(getContext()), Linkage,
+ return new llvm::GlobalVariable(CGM.getModule().getContext(),
+ LTy, Ty.isConstant(getContext()), Linkage,
llvm::Constant::getNullValue(LTy), Name,
&CGM.getModule(), D.isThreadSpecified(),
Ty.getAddressSpace());
@@ -149,7 +150,8 @@ void CodeGenFunction::EmitStaticBlockVarDecl(const VarDecl &D) {
if (GV->getType() != Init->getType()) {
llvm::GlobalVariable *OldGV = GV;
- GV = new llvm::GlobalVariable(Init->getType(), OldGV->isConstant(),
+ GV = new llvm::GlobalVariable(CGM.getModule().getContext(),
+ Init->getType(), OldGV->isConstant(),
OldGV->getLinkage(), Init, "",
&CGM.getModule(), D.isThreadSpecified(),
D.getType().getAddressSpace());
OpenPOWER on IntegriCloud