summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-08 17:56:47 +0000
committerChris Lattner <sabre@nondot.org>2011-04-08 17:56:47 +0000
commitca320f54daf16a282ac18934ac6513a17123a841 (patch)
tree397df7d671378c347c8dd2f83be1e39c875187d0 /llvm/examples
parent18b81c52bb7bbc14c0f0114bd03d94963a70724d (diff)
downloadbcm5719-llvm-ca320f54daf16a282ac18934ac6513a17123a841.tar.gz
bcm5719-llvm-ca320f54daf16a282ac18934ac6513a17123a841.zip
fix this to build with the recent StructType changes.
llvm-svn: 129139
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/ExceptionDemo/ExceptionDemo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
index 95ccd24a689..e4fd0dbe49f 100644
--- a/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
+++ b/llvm/examples/ExceptionDemo/ExceptionDemo.cpp
@@ -1637,6 +1637,8 @@ void runExceptionThrow(llvm::ExecutionEngine* engine,
// End test functions
//
+typedef llvm::ArrayRef<const llvm::Type*> TypeArray;
+
/// This initialization routine creates type info globals and
/// adds external function declarations to module.
/// @param numTypeInfos number of linear type info associated type info types
@@ -1660,23 +1662,21 @@ static void createStandardUtilityFunctions(unsigned numTypeInfos,
llvm::ConstantInt::get(llvm::Type::getInt8Ty(context), 2),
+
// Create our type info type
ourTypeInfoType = llvm::StructType::get(context,
- builder.getInt32Ty(),
- NULL);
+ TypeArray(builder.getInt32Ty()));
// Create OurException type
ourExceptionType = llvm::StructType::get(context,
- ourTypeInfoType,
- NULL);
+ TypeArray(ourTypeInfoType));
// Create portion of _Unwind_Exception type
//
// Note: Declaring only a portion of the _Unwind_Exception struct.
// Does this cause problems?
ourUnwindExceptionType = llvm::StructType::get(context,
- builder.getInt64Ty(),
- NULL);
+ TypeArray(builder.getInt64Ty()));
struct OurBaseException_t dummyException;
// Calculate offset of OurException::unwindException member.
OpenPOWER on IntegriCloud