llvm.org GIT mirror llvm / cad3f77
fix this to build with the recent StructType changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129139 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 8 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
16361636 // End test functions
16371637 //
16381638
1639 typedef llvm::ArrayRef TypeArray;
1640
16391641 /// This initialization routine creates type info globals and
16401642 /// adds external function declarations to module.
16411643 /// @param numTypeInfos number of linear type info associated type info types
16591661 llvm::ConstantInt::get(llvm::Type::getInt8Ty(context), 2),
16601662
16611663
1664
16621665 // Create our type info type
16631666 ourTypeInfoType = llvm::StructType::get(context,
1664 builder.getInt32Ty(),
1665 NULL);
1667 TypeArray(builder.getInt32Ty()));
16661668
16671669 // Create OurException type
16681670 ourExceptionType = llvm::StructType::get(context,
1669 ourTypeInfoType,
1670 NULL);
1671 TypeArray(ourTypeInfoType));
16711672
16721673 // Create portion of _Unwind_Exception type
16731674 //
16741675 // Note: Declaring only a portion of the _Unwind_Exception struct.
16751676 // Does this cause problems?
16761677 ourUnwindExceptionType = llvm::StructType::get(context,
1677 builder.getInt64Ty(),
1678 NULL);
1678 TypeArray(builder.getInt64Ty()));
16791679 struct OurBaseException_t dummyException;
16801680
16811681 // Calculate offset of OurException::unwindException member.