summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-27 22:29:56 +0000
committerOwen Anderson <resistor@mac.com>2009-07-27 22:29:56 +0000
commit0e0189d64dae4dd0b1984d8cb306f8ad16d25d2a (patch)
treeb378f413e25b3ae609c164ddfd3c6e11e74892a0 /clang/lib/CodeGen/CodeGenModule.cpp
parent45308b578b5eae549e5661d65f73a77d673755bd (diff)
downloadbcm5719-llvm-0e0189d64dae4dd0b1984d8cb306f8ad16d25d2a.tar.gz
bcm5719-llvm-0e0189d64dae4dd0b1984d8cb306f8ad16d25d2a.zip
Update for LLVM API change.
llvm-svn: 77267
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 756cca7384b..e35829cde34 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -213,7 +213,7 @@ void CodeGenModule::EmitCtorList(const CtorList &Fns, const char *GlobalName) {
S.push_back(
llvm::ConstantInt::get(llvm::Type::Int32Ty, I->second, false));
S.push_back(VMContext.getConstantExprBitCast(I->first, CtorPFTy));
- Ctors.push_back(VMContext.getConstantStruct(CtorStructTy, S));
+ Ctors.push_back(llvm::ConstantStruct::get(CtorStructTy, S));
}
if (!Ctors.empty()) {
@@ -507,7 +507,7 @@ llvm::Constant *CodeGenModule::EmitAnnotateAttr(llvm::GlobalValue *GV,
VMContext.getConstantExprBitCast(unitGV, SBP),
llvm::ConstantInt::get(llvm::Type::Int32Ty, LineNo)
};
- return VMContext.getConstantStruct(Fields, 4, false);
+ return llvm::ConstantStruct::get(Fields, 4, false);
}
bool CodeGenModule::MayDeferGeneration(const ValueDecl *Global) {
@@ -1342,7 +1342,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) {
llvm::ConstantInt::get(Ty, StringLength), CFRD, STy);
// The struct.
- C = VMContext.getConstantStruct(STy, Fields);
+ C = llvm::ConstantStruct::get(STy, Fields);
GV = new llvm::GlobalVariable(getModule(), C->getType(), true,
llvm::GlobalVariable::PrivateLinkage, C,
"_unnamed_cfstring_");
OpenPOWER on IntegriCloud