diff options
author | Matt Davis <Matthew.Davis@sony.com> | 2018-02-14 21:22:11 +0000 |
---|---|---|
committer | Matt Davis <Matthew.Davis@sony.com> | 2018-02-14 21:22:11 +0000 |
commit | b8402ef658ef619823c38b7d31d83bea4bc1b967 (patch) | |
tree | a4faac5d6acc4464f97df3cc9b349daf88b3c31f /clang/test/CodeGenCXX/debug-info-scope.cpp | |
parent | 54c64ed3c07edfae2e676c3aa2e57abc67459539 (diff) | |
download | bcm5719-llvm-b8402ef658ef619823c38b7d31d83bea4bc1b967.tar.gz bcm5719-llvm-b8402ef658ef619823c38b7d31d83bea4bc1b967.zip |
[Debug] Annotate compiler generated range-for loop variables.
Summary:
This change aims to simplify debugging by annotating the range-for loop artificial variables (range, begin, end) with the scope depth.
Reviewers: rsmith, dblaikie
Reviewed By: dblaikie
Subscribers: dblaikie, cfe-commits
Tags: #debug-info
Differential Revision: https://reviews.llvm.org/D42813
llvm-svn: 325175
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-scope.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-scope.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-scope.cpp b/clang/test/CodeGenCXX/debug-info-scope.cpp index e81eccc5168..11242826974 100644 --- a/clang/test/CodeGenCXX/debug-info-scope.cpp +++ b/clang/test/CodeGenCXX/debug-info-scope.cpp @@ -58,7 +58,7 @@ void func() { } int x[] = {1, 2}; - // CHECK: = !DILocalVariable(name: "__range" + // CHECK: = !DILocalVariable(name: "__range1" // CHECK-SAME: scope: [[RANGE_FOR:![0-9]*]] // CHECK-NOT: line: // CHECK-SAME: ){{$}} |