summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-05 23:18:46 +0000
committerOwen Anderson <resistor@mac.com>2009-08-05 23:18:46 +0000
commit758428f4e373a3ed39340063926e44a9a5a3385a (patch)
tree7018b578a1f8e28ecd062f5ae6b1d1ae36ceec81 /clang/lib/CodeGen/CodeGenModule.cpp
parent03cb69fbd1ef003f94710f2d497515692ff5445a (diff)
downloadbcm5719-llvm-758428f4e373a3ed39340063926e44a9a5a3385a.tar.gz
bcm5719-llvm-758428f4e373a3ed39340063926e44a9a5a3385a.zip
Update for LLVM API change.
llvm-svn: 78259
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index df1781de9ec..249764e9d99 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -203,7 +203,7 @@ void CodeGenModule::EmitCtorList(const CtorList &Fns, const char *GlobalName) {
// Get the type of a ctor entry, { i32, void ()* }.
llvm::StructType* CtorStructTy =
- llvm::StructType::get(llvm::Type::Int32Ty,
+ llvm::StructType::get(VMContext, llvm::Type::Int32Ty,
llvm::PointerType::getUnqual(CtorFTy), NULL);
// Construct the constructor and destructor arrays.
@@ -507,7 +507,7 @@ llvm::Constant *CodeGenModule::EmitAnnotateAttr(llvm::GlobalValue *GV,
llvm::ConstantExpr::getBitCast(unitGV, SBP),
llvm::ConstantInt::get(llvm::Type::Int32Ty, LineNo)
};
- return llvm::ConstantStruct::get(Fields, 4, false);
+ return llvm::ConstantStruct::get(VMContext, Fields, 4, false);
}
bool CodeGenModule::MayDeferGeneration(const ValueDecl *Global) {
OpenPOWER on IntegriCloud