wire up -fno-show-source-location option, patch by Alexei Svitkine!

llvm-svn: 63409
This commit is contained in:
Chris Lattner 2009-01-30 19:01:41 +00:00
parent 097feda5e0
commit 83ab0a83f5
1 changed files with 7 additions and 1 deletions

View File

@ -187,6 +187,11 @@ static llvm::cl::opt<bool>
NoShowColumn("fno-show-column",
llvm::cl::desc("Do not include column number on diagnostics"));
static llvm::cl::opt<bool>
NoShowLocation("fno-show-source-location",
llvm::cl::desc("Do not include source location information with"
" diagnostics"));
static llvm::cl::opt<bool>
NoCaretDiagnostics("fno-caret-diagnostics",
llvm::cl::desc("Do not include source line and caret with"
@ -1530,7 +1535,8 @@ int main(int argc, char **argv) {
// Print diagnostics to stderr by default.
TextDiagClient = new TextDiagnosticPrinter(llvm::errs(),
!NoShowColumn,
!NoCaretDiagnostics);
!NoCaretDiagnostics,
!NoShowLocation);
} else {
// When checking diagnostics, just buffer them up.
TextDiagClient = new TextDiagnosticBuffer();