Update for LLVM API change.
llvm-svn: 75446
This commit is contained in:
@@ -804,7 +804,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 = llvm::Constant::getNullValue(getTypes().ConvertTypeForMem(ASTTy));
|
||||
Init = getLLVMContext().getNullValue(getTypes().ConvertTypeForMem(ASTTy));
|
||||
} else {
|
||||
Init = EmitConstantExpr(D->getInit(), D->getType());
|
||||
if (!Init) {
|
||||
@@ -1184,7 +1184,7 @@ static void appendFieldAndPadding(CodeGenModule &CGM,
|
||||
// Append padding
|
||||
for (int i = StructFieldNo + 1; i < NextStructFieldNo; i++) {
|
||||
llvm::Constant *C =
|
||||
llvm::Constant::getNullValue(STy->getElementType(StructFieldNo + 1));
|
||||
CGM.getLLVMContext().getNullValue(STy->getElementType(StructFieldNo + 1));
|
||||
|
||||
Fields.push_back(C);
|
||||
}
|
||||
@@ -1232,7 +1232,7 @@ GetAddrOfConstantCFString(const StringLiteral *Literal) {
|
||||
if (llvm::Constant *C = Entry.getValue())
|
||||
return C;
|
||||
|
||||
llvm::Constant *Zero = llvm::Constant::getNullValue(llvm::Type::Int32Ty);
|
||||
llvm::Constant *Zero = getLLVMContext().getNullValue(llvm::Type::Int32Ty);
|
||||
llvm::Constant *Zeros[] = { Zero, Zero };
|
||||
|
||||
if (!CFConstantStringClassRef) {
|
||||
|
||||
Reference in New Issue
Block a user