[PATCH] Allow overriding flag names in diagnostics.
Diego Novillo
dnovillo at google.com
Mon Apr 21 11:34:05 PDT 2014
Hi rsmith,
This allows callers of Diags.Report() to override 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]".
http://reviews.llvm.org/D3441
Files:
include/clang/Basic/Diagnostic.h
lib/CodeGen/CodeGenAction.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
test/Frontend/optimization-remark.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3441.1.patch
Type: text/x-patch
Size: 4580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140421/ec464581/attachment.bin>
More information about the cfe-commits
mailing list