summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorAlon Mishne <alon.mishne@intel.com>2014-03-18 09:41:07 +0000
committerAlon Mishne <alon.mishne@intel.com>2014-03-18 09:41:07 +0000
commit086494730d05626f5c95ecb3385682cea856faa7 (patch)
tree333f9b3e62c4e6364024fb47ba4be68f08c84ffe /unittests
parentfabbbc96ca70441f974b09eb33320d331fb36d1c (diff)
downloadllvm-086494730d05626f5c95ecb3385682cea856faa7.tar.gz
llvm-086494730d05626f5c95ecb3385682cea856faa7.tar.bz2
llvm-086494730d05626f5c95ecb3385682cea856faa7.tar.xz
[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
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Transforms/Utils/Cloning.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unittests/Transforms/Utils/Cloning.cpp b/unittests/Transforms/Utils/Cloning.cpp
index 63585b82ae..6dec807b0c 100644
--- a/unittests/Transforms/Utils/Cloning.cpp
+++ b/unittests/Transforms/Utils/Cloning.cpp
@@ -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++;