[llvm-commits] [llvm-gcc-4.2] r78956 - in /llvm-gcc-4.2/trunk/gcc: llvm-abi.h llvm-types.cpp
Owen Anderson
resistor at mac.com
Thu Aug 13 16:27:47 PDT 2009
Author: resistor
Date: Thu Aug 13 18:27:47 2009
New Revision: 78956
URL: http://llvm.org/viewvc/llvm-project?rev=78956&view=rev
Log:
Update for LLVM API change.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-abi.h
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-abi.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-abi.h?rev=78956&r1=78955&r2=78956&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-abi.h (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-abi.h Thu Aug 13 18:27:47 2009
@@ -437,7 +437,7 @@
std::vector<const Type*> Elts;
if (Ty == Type::getVoidTy(getGlobalContext())) {
// Handle void explicitly as an opaque type.
- const Type *OpTy = OpaqueType::get();
+ const Type *OpTy = OpaqueType::get(getGlobalContext());
C.HandleScalarArgument(OpTy, type);
ScalarElts.push_back(OpTy);
} else if (isPassedByInvisibleReference(type)) { // variable size -> by-ref.
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=78956&r1=78955&r2=78956&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Thu Aug 13 18:27:47 2009
@@ -720,7 +720,7 @@
if (const Type *Ty = GET_TYPE_LLVM(orig_type))
return Ty;
- const Type *Ty = OpaqueType::get();
+ const Type *Ty = OpaqueType::get(Context);
TheModule->addTypeName(GetTypeName("enum.", orig_type), Ty);
return TypeDB.setType(orig_type, Ty);
}
@@ -824,7 +824,7 @@
if (Ty == 0) {
PointersToReresolve.push_back(type);
return TypeDB.setType(type,
- PointerType::getUnqual(OpaqueType::get()));
+ PointerType::getUnqual(OpaqueType::get(Context)));
}
// A type has already been computed. However, this may be some sort of
@@ -2136,7 +2136,7 @@
}
if (TYPE_SIZE(type) == 0) { // Forward declaration?
- const Type *Ty = OpaqueType::get();
+ const Type *Ty = OpaqueType::get(Context);
TheModule->addTypeName(GetTypeName("struct.", orig_type), Ty);
return TypeDB.setType(type, Ty);
}
@@ -2314,7 +2314,7 @@
}
if (TYPE_SIZE(type) == 0) { // Forward declaraion?
- const Type *Ty = OpaqueType::get();
+ const Type *Ty = OpaqueType::get(Context);
TheModule->addTypeName(GetTypeName("union.", orig_type), Ty);
return TypeDB.setType(type, Ty);
}
More information about the llvm-commits
mailing list