diff options
author | Eric Christopher <echristo@apple.com> | 2012-07-02 23:22:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-07-02 23:22:21 +0000 |
commit | b65acc61a5f3ff22d6348e17d7fe4df8d3b99882 (patch) | |
tree | a5a37531436c6b9ebfd5961f9f292808f24d14f6 /llvm/unittests/Support/IntegersSubsetTest.cpp | |
parent | 939236c2eb623b8437b8d746840acc6fff18b334 (diff) | |
download | bcm5719-llvm-b65acc61a5f3ff22d6348e17d7fe4df8d3b99882.tar.gz bcm5719-llvm-b65acc61a5f3ff22d6348e17d7fe4df8d3b99882.zip |
Revert "IntRange:" as it appears to be breaking self hosting.
This reverts commit b2833d9dcba88c6f0520cad760619200adc0442c.
llvm-svn: 159618
Diffstat (limited to 'llvm/unittests/Support/IntegersSubsetTest.cpp')
-rw-r--r-- | llvm/unittests/Support/IntegersSubsetTest.cpp | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/llvm/unittests/Support/IntegersSubsetTest.cpp b/llvm/unittests/Support/IntegersSubsetTest.cpp index a1031611148..5d1dde4c37a 100644 --- a/llvm/unittests/Support/IntegersSubsetTest.cpp +++ b/llvm/unittests/Support/IntegersSubsetTest.cpp @@ -193,20 +193,20 @@ namespace { const unsigned_ranges IntersectRes, unsigned IntersectResSize ) { - unsigned successors[2] = {0, 1}; + Mapping::RangesCollection Ranges; Mapping LHSMapping; for (unsigned i = 0; i < LSize; ++i) Ranges.push_back(Range(Int(LHS[i][0]), Int(LHS[i][1]))); - LHSMapping.add(Ranges, &successors[0]); + LHSMapping.add(Ranges); Ranges.clear(); Mapping RHSMapping; for (unsigned i = 0; i < RSize; ++i) Ranges.push_back(Range(Int(RHS[i][0]), Int(RHS[i][1]))); - RHSMapping.add(Ranges, &successors[1]); + RHSMapping.add(Ranges); Mapping LExclude, Intersection; @@ -217,10 +217,8 @@ namespace { unsigned i = 0; for (Mapping::RangeIterator rei = LExclude.begin(), - e = LExclude.end(); rei != e; ++rei, ++i) { + e = LExclude.end(); rei != e; ++rei, ++i) EXPECT_EQ(rei->first, Range(ExcludeRes[i][0], ExcludeRes[i][1])); - EXPECT_EQ(rei->second, &successors[0]); - } } else EXPECT_TRUE(LExclude.empty()); @@ -229,10 +227,8 @@ namespace { unsigned i = 0; for (Mapping::RangeIterator ii = Intersection.begin(), - e = Intersection.end(); ii != e; ++ii, ++i) { + e = Intersection.end(); ii != e; ++ii, ++i) EXPECT_EQ(ii->first, Range(IntersectRes[i][0], IntersectRes[i][1])); - EXPECT_EQ(ii->second, &successors[0]); - } } else EXPECT_TRUE(Intersection.empty()); @@ -245,11 +241,9 @@ namespace { EXPECT_EQ(LExclude.size(), ExcludeResSize); unsigned i = 0; - for (Mapping::RangeIterator lei = LExclude.begin(), - e = LExclude.end(); lei != e; ++lei, ++i) { - EXPECT_EQ(lei->first, Range(ExcludeRes[i][0], ExcludeRes[i][1])); - EXPECT_EQ(lei->second, &successors[0]); - } + for (Mapping::RangeIterator rei = LExclude.begin(), + e = LExclude.end(); rei != e; ++rei, ++i) + EXPECT_EQ(rei->first, Range(ExcludeRes[i][0], ExcludeRes[i][1])); } else EXPECT_TRUE(LExclude.empty()); } |