summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-05-26 20:49:16 +0000
committerRichard Trieu <rtrieu@google.com>2011-05-26 20:49:16 +0000
commit17afcbe5dee0587fe7ef405c81e22bc5cdea1954 (patch)
tree17b3f18bf951e49ab59254c42f5234fd055c1559 /clang/lib/Frontend
parent46fbc60f637fa143bcd70833963691d15a1395ba (diff)
downloadbcm5719-llvm-17afcbe5dee0587fe7ef405c81e22bc5cdea1954.tar.gz
bcm5719-llvm-17afcbe5dee0587fe7ef405c81e22bc5cdea1954.zip
Change the include stack of "instantiated from" notes to fall under the control of f/fno-diagnostics-show-note-include-stack flags. This should help with reducing diagnostic spew from macros instantiations.
llvm-svn: 132143
Diffstat (limited to 'clang/lib/Frontend')
-rw-r--r--clang/lib/Frontend/TextDiagnosticPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/TextDiagnosticPrinter.cpp b/clang/lib/Frontend/TextDiagnosticPrinter.cpp
index 0d048a30309..1c47bf7bee9 100644
--- a/clang/lib/Frontend/TextDiagnosticPrinter.cpp
+++ b/clang/lib/Frontend/TextDiagnosticPrinter.cpp
@@ -343,7 +343,7 @@ void TextDiagnosticPrinter::EmitCaretDiagnostic(Diagnostic::Level Level,
// "included from" lines.
if (LastWarningLoc != PLoc.getIncludeLoc()) {
LastWarningLoc = PLoc.getIncludeLoc();
- PrintIncludeStack(Level, LastWarningLoc, SM);
+ PrintIncludeStack(Diagnostic::Note, LastWarningLoc, SM);
}
if (DiagOpts->ShowLocation) {
OpenPOWER on IntegriCloud