diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-31 20:28:54 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-31 20:28:54 +0000 |
commit | c9c88b4159791c48e486ca94e3743b5979e2b7a6 (patch) | |
tree | 4d85d56ca6aee06dbf8d7e691a73daa53f07e571 /lib/CodeGen/CodeGenModule.cpp | |
parent | 8c4dc1ffd20a8fe90a90c7f471cd9842b981078e (diff) |
Update for LLVM API change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index bc3bd0bfa9..a5b0dacd76 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -810,7 +810,7 @@ void CodeGenModule::EmitGlobalVarDefinition(const VarDecl *D) { // exists. A use may still exists, however, so we still may need // to do a RAUW. assert(!ASTTy->isIncompleteType() && "Unexpected incomplete type"); - Init = getLLVMContext().getNullValue(getTypes().ConvertTypeForMem(ASTTy)); + Init = llvm::Constant::getNullValue(getTypes().ConvertTypeForMem(ASTTy)); } else { Init = EmitConstantExpr(D->getInit(), D->getType()); if (!Init) { @@ -1192,7 +1192,7 @@ static void appendFieldAndPadding(CodeGenModule &CGM, // Append padding for (int i = StructFieldNo + 1; i < NextStructFieldNo; i++) { llvm::Constant *C = - CGM.getLLVMContext().getNullValue(STy->getElementType(StructFieldNo + 1)); + llvm::Constant::getNullValue(STy->getElementType(StructFieldNo + 1)); Fields.push_back(C); } @@ -1268,7 +1268,7 @@ CodeGenModule::GetAddrOfConstantCFString(const StringLiteral *Literal) { if (llvm::Constant *C = Entry.getValue()) return C; - llvm::Constant *Zero = getLLVMContext().getNullValue(llvm::Type::Int32Ty); + llvm::Constant *Zero = llvm::Constant::getNullValue(llvm::Type::Int32Ty); llvm::Constant *Zeros[] = { Zero, Zero }; // If we don't already have it, get __CFConstantStringClassReference. |