mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
[C++11] Change DebugInfoFinder to use range-based loops
Also changes the iterators to return actual DI type over MDNode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204130 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -276,7 +276,7 @@ TEST_F(CloneFunc, Subprogram) {
|
||||
unsigned SubprogramCount = Finder->subprogram_count();
|
||||
EXPECT_EQ(2U, SubprogramCount);
|
||||
|
||||
DebugInfoFinder::iterator Iter = Finder->subprogram_begin();
|
||||
auto Iter = Finder->subprograms().begin();
|
||||
DISubprogram Sub1(*Iter);
|
||||
EXPECT_TRUE(Sub1.Verify());
|
||||
Iter++;
|
||||
@ -292,7 +292,7 @@ TEST_F(CloneFunc, Subprogram) {
|
||||
TEST_F(CloneFunc, SubprogramInRightCU) {
|
||||
EXPECT_EQ(2U, Finder->compile_unit_count());
|
||||
|
||||
DebugInfoFinder::iterator Iter = Finder->compile_unit_begin();
|
||||
auto Iter = Finder->compile_units().begin();
|
||||
DICompileUnit CU1(*Iter);
|
||||
EXPECT_TRUE(CU1.Verify());
|
||||
Iter++;
|
||||
|
Reference in New Issue
Block a user