summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend/optimization-remark.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2014-04-21 23:16:03 +0000
committerDiego Novillo <dnovillo@google.com>2014-04-21 23:16:03 +0000
commit9f2399773256b63b503c9c7432b92257d338e0b9 (patch)
treed880e1eb0a8852a0d42494461d2c9eff4cee2ffa /clang/test/Frontend/optimization-remark.c
parent97d484342c36754609c8d68b373940cb45da0dea (diff)
downloadbcm5719-llvm-9f2399773256b63b503c9c7432b92257d338e0b9.tar.gz
bcm5719-llvm-9f2399773256b63b503c9c7432b92257d338e0b9.zip
Allow adding a value to a flag in diagnostics.
Summary: This allows callers of Diags.Report() to append a value to the name of the flag associated with the diagnostic. This is useful in cases like the -Rpass flag, where we want the diagnostic to show the name of the pass that matched the pattern. Instead of showing "... [-Rpass]", this allows us to show "... [-Rpass=passname]". Reviewers: rsmith CC: cfe-commits Differential Revision: http://reviews.llvm.org/D3441 llvm-svn: 206826
Diffstat (limited to 'clang/test/Frontend/optimization-remark.c')
-rw-r--r--clang/test/Frontend/optimization-remark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Frontend/optimization-remark.c b/clang/test/Frontend/optimization-remark.c
index 53edeed4f0e..03bb8f875ac 100644
--- a/clang/test/Frontend/optimization-remark.c
+++ b/clang/test/Frontend/optimization-remark.c
@@ -13,7 +13,7 @@ int foo(int x, int y) __attribute__((always_inline));
int foo(int x, int y) { return x + y; }
int bar(int j) { return foo(j, j - 2); }
-// INLINE: remark: foo inlined into bar [-Rpass]
+// INLINE: remark: foo inlined into bar [-Rpass=inline]
// INLINE-NO-LOC: {{^remark: foo inlined into bar}}
// INLINE-NO-LOC: note: use -gline-tables-only -gcolumn-info to track
OpenPOWER on IntegriCloud