aboutsummaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-08-05 23:28:57 +0000
committerOwen Anderson <resistor@mac.com>2009-08-05 23:28:57 +0000
commit5b1e79e2015940e0c38aa96b6e4ce75da150e8c4 (patch)
tree714165b4a54d68d34c48dfccea94595daaac8ac7 /unittests
parentd7f2a6cb3fbc012763adb42fd967f6fefbb22a37 (diff)
downloadexternal_llvm-5b1e79e2015940e0c38aa96b6e4ce75da150e8c4.zip
external_llvm-5b1e79e2015940e0c38aa96b6e4ce75da150e8c4.tar.gz
external_llvm-5b1e79e2015940e0c38aa96b6e4ce75da150e8c4.tar.bz2
Update unit test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Support/TypeBuilderTest.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/unittests/Support/TypeBuilderTest.cpp b/unittests/Support/TypeBuilderTest.cpp
index e6c7c95..2057093 100644
--- a/unittests/Support/TypeBuilderTest.cpp
+++ b/unittests/Support/TypeBuilderTest.cpp
@@ -171,7 +171,7 @@ public:
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 @@ public:
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 @@ public:
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()),