diff options
author | Chris Lattner <sabre@nondot.org> | 2011-10-16 04:47:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-10-16 04:47:35 +0000 |
commit | a3a06810836e42098c37baba492297e30bdf65c4 (patch) | |
tree | af39ceb3a19551ed140572d08b494545db94c952 /llvm/tools/bugpoint/BugDriver.cpp | |
parent | 25ea4e5ad322948563dd8995d156ed21ef7ba689 (diff) | |
download | bcm5719-llvm-a3a06810836e42098c37baba492297e30bdf65c4.tar.gz bcm5719-llvm-a3a06810836e42098c37baba492297e30bdf65c4.zip |
Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang does. Enhance
the X86 asmparser to produce ranges in the one case that was annoying me, for example:
test.s:10:15: error: invalid operand for instruction
movl 0(%rax), 0(%edx)
^~~~~~~
It should be straight-forward to enhance filecheck, tblgen, and/or the .ll parser to use
ranges where appropriate if someone is interested.
llvm-svn: 142106
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/BugDriver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.cpp b/llvm/tools/bugpoint/BugDriver.cpp index 677d17887f4..0b59a7885f1 100644 --- a/llvm/tools/bugpoint/BugDriver.cpp +++ b/llvm/tools/bugpoint/BugDriver.cpp @@ -87,7 +87,7 @@ Module *llvm::ParseInputFile(const std::string &Filename, SMDiagnostic Err; Module *Result = ParseIRFile(Filename, Err, Ctxt); if (!Result) - Err.Print("bugpoint", errs()); + Err.print("bugpoint", errs()); // If we don't have an override triple, use the first one to configure // bugpoint, or use the host triple if none provided. |