[llvm-commits] [llvm] r78260 - /llvm/trunk/unittests/Support/TypeBuilderTest.cpp
Owen Anderson
resistor at mac.com
Wed Aug 5 16:29:30 PDT 2009
Author: resistor
Date: Wed Aug 5 18:28:57 2009
New Revision: 78260
URL: http://llvm.org/viewvc/llvm-project?rev=78260&view=rev
Log:
Update unit test.
Modified:
llvm/trunk/unittests/Support/TypeBuilderTest.cpp
Modified: llvm/trunk/unittests/Support/TypeBuilderTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/Support/TypeBuilderTest.cpp?rev=78260&r1=78259&r2=78260&view=diff
==============================================================================
--- llvm/trunk/unittests/Support/TypeBuilderTest.cpp (original)
+++ llvm/trunk/unittests/Support/TypeBuilderTest.cpp Wed Aug 5 18:28:57 2009
@@ -171,7 +171,7 @@
st.push_back(TypeBuilder<int, cross>::get(Context));
st.push_back(TypeBuilder<int*, cross>::get(Context));
st.push_back(TypeBuilder<void*[], cross>::get(Context));
- static const StructType *const result = StructType::get(st);
+ static const StructType *const result = StructType::get(Context, st);
return result;
}
@@ -194,7 +194,7 @@
st.push_back(TypeBuilder<types::i<32>, cross>::get(Context));
st.push_back(TypeBuilder<types::i<32>*, cross>::get(Context));
st.push_back(TypeBuilder<types::i<8>*[], cross>::get(Context));
- static const StructType *const result = StructType::get(st);
+ static const StructType *const result = StructType::get(Context, st);
return result;
}
@@ -211,19 +211,19 @@
namespace {
TEST(TypeBuilderTest, Extensions) {
- EXPECT_EQ(PointerType::getUnqual(StructType::get(
+ EXPECT_EQ(PointerType::getUnqual(StructType::get(getGlobalContext(),
TypeBuilder<int, false>::get(getGlobalContext()),
TypeBuilder<int*, false>::get(getGlobalContext()),
TypeBuilder<void*[], false>::get(getGlobalContext()),
NULL)),
(TypeBuilder<MyType*, false>::get(getGlobalContext())));
- EXPECT_EQ(PointerType::getUnqual(StructType::get(
+ EXPECT_EQ(PointerType::getUnqual(StructType::get(getGlobalContext(),
TypeBuilder<types::i<32>, false>::get(getGlobalContext()),
TypeBuilder<types::i<32>*, false>::get(getGlobalContext()),
TypeBuilder<types::i<8>*[], false>::get(getGlobalContext()),
NULL)),
(TypeBuilder<MyPortableType*, false>::get(getGlobalContext())));
- EXPECT_EQ(PointerType::getUnqual(StructType::get(
+ EXPECT_EQ(PointerType::getUnqual(StructType::get(getGlobalContext(),
TypeBuilder<types::i<32>, false>::get(getGlobalContext()),
TypeBuilder<types::i<32>*, false>::get(getGlobalContext()),
TypeBuilder<types::i<8>*[], false>::get(getGlobalContext()),
More information about the llvm-commits
mailing list