add an explicit class for holding llvm::SourceMgr diagnostics and use
authorChris Lattner <sabre@nondot.org>
Thu, 2 Jul 2009 22:24:20 +0000 (22:24 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Jul 2009 22:24:20 +0000 (22:24 +0000)
commit2f510aed9cbd24dca1fdc5aabe27325e5ade9e1a
tree0eef4089f7d6dcd6687658ba20d4d9f0cc5aed9b
parentb50ea5c48f8b1ce259e034ca5c16dc14af1a582c
add an explicit class for holding llvm::SourceMgr diagnostics and use
it to print them.  This gives us column numbers in the diag line.  Before:

t.s:4: error: unexpected token in argument list
 mov %eax %edx
          ^

now:
t.s:4:11: error: unexpected token in argument list
 mov %eax %edx
          ^

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74732 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/SourceMgr.h
lib/Support/SourceMgr.cpp