[llvm-commits] [gcc-plugin] r81855 - /gcc-plugin/trunk/llvm-convert.cpp
Duncan Sands
baldrick at free.fr
Tue Sep 15 07:27:11 PDT 2009
Author: baldrick
Date: Tue Sep 15 09:27:11 2009
New Revision: 81855
URL: http://llvm.org/viewvc/llvm-project?rev=81855&view=rev
Log:
In mainline GCC, the filter value is an "int".
Modified:
gcc-plugin/trunk/llvm-convert.cpp
Modified: gcc-plugin/trunk/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/llvm-convert.cpp?rev=81855&r1=81854&r2=81855&view=diff
==============================================================================
--- gcc-plugin/trunk/llvm-convert.cpp (original)
+++ gcc-plugin/trunk/llvm-convert.cpp Tue Sep 15 09:27:11 2009
@@ -1916,22 +1916,22 @@
// Check to see if the exception values have been constructed.
if (ExceptionValue) return;
- const Type *IntPtr = TD.getIntPtrType(Context);
+ const Type *IntTy = ConvertType(integer_type_node);
ExceptionValue = CreateTemporary(PointerType::getUnqual(Type::getInt8Ty(Context)));
ExceptionValue->setName("eh_exception");
- ExceptionSelectorValue = CreateTemporary(IntPtr);
+ ExceptionSelectorValue = CreateTemporary(IntTy);
ExceptionSelectorValue->setName("eh_selector");
FuncEHException = Intrinsic::getDeclaration(TheModule,
Intrinsic::eh_exception);
FuncEHSelector = Intrinsic::getDeclaration(TheModule,
- (IntPtr == Type::getInt32Ty(Context) ?
+ (IntTy == Type::getInt32Ty(Context) ?
Intrinsic::eh_selector_i32 :
Intrinsic::eh_selector_i64));
FuncEHGetTypeID = Intrinsic::getDeclaration(TheModule,
- (IntPtr == Type::getInt32Ty(Context) ?
+ (IntTy == Type::getInt32Ty(Context) ?
Intrinsic::eh_typeid_for_i32 :
Intrinsic::eh_typeid_for_i64));
}
More information about the llvm-commits
mailing list