History log of /external/llvm/lib/Support/SourceMgr.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a7eb58378afcdf50f0afd193356dc07c017b738e 20-Jul-2012 Daniel Dunbar <daniel@zuster.org> SourceMgr: Use has_colors() instead of just is_displayed() before trying to use
color.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160559 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
d58518a8b60962988c0b27803fc8e89916a5d80f 07-May-2012 Matt Beaumont-Gay <matthewbg@google.com> Don't assume size_t is unsigned long long.

Fixes a -Woverflow warning from gcc when building for 32-bit platforms.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156313 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
eb034f4af3f84106828c9ca11b0b003c1c86fb49 06-May-2012 Chris Lattner <sabre@nondot.org> make SourceMgr tolerate empty SMLoc()'s better.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156260 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
77eafd940a2fcbecbd82e1a649b7f081cb4a3d4a 06-May-2012 Chris Lattner <sabre@nondot.org> reapply my patch, with a fix for an off-by-one error. Turned out to be a lot
of work for a drive-by fix :)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156246 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
c18e6d937526dfc45a7b57d56ed1120f6a309fc2 06-May-2012 Chris Lattner <sabre@nondot.org> revert my patches, which are causing problems.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156245 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
bf0e32368e704b46b414f2e0323575a0ff370bda 05-May-2012 Chris Lattner <sabre@nondot.org> refactor some code to expose column numbers more and make diagnostic printing slightly more efficient.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156243 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
89f33fdb774da54d2040ec6e5e2f4a4e4e3a25b0 18-Apr-2012 Benjamin Kramer <benny.kra@googlemail.com> SourceMgr: Colorize diagnostics.

Same color scheme as clang uses. The colors are only enabled if the output is a tty.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155035 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
2dd674fdce68f8fd59d78a3bbab2cf5b8d220290 17-Jan-2012 David Blaikie <dblaikie@gmail.com> Removing unused default switch cases in switches over enums that already account for all enumeration values explicitly.

(This time I believe I've checked all the -Wreturn-type warnings from GCC & added the couple of llvm_unreachables necessary to silence them. If I've missed any, I'll happily fix them as soon as I know about them)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148262 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
462b43cbf61fd38db5f2467175c4a51ac1aba154 16-Oct-2011 Chris Lattner <sabre@nondot.org> remove the dead 'ShowLine' argument from SMDiagnostic.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
3f2d5f60b31fd057c10f77b2e607b23a8c94f6d3 16-Oct-2011 Chris Lattner <sabre@nondot.org> Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a
string, pass it around as an enum.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142107 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
d8b7aa26134d2abee777f745c32005e63dea2455 16-Oct-2011 Chris Lattner <sabre@nondot.org> 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.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142106 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
dd137903e47fdb5822724baaddae88f119badc86 01-Jun-2011 Joerg Sonnenberger <joerg@bec.de> Add new -d option to tblgen. It writes a make(1)-style dependency file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132395 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
3ff9563c3e391954b2e224afcf8b2b0fcc3888aa 16-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> via an out parm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121958 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
333ad3f2bf2941618f8e1563da022da011e615c0 09-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Fix whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121382 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
333fb04506233255f10d8095c9e2de5e5f0fdc6f 09-Dec-2010 Michael J. Spencer <bigcheesegs@gmail.com> Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with error_code &ec. And fix clients.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121379 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
4afa12890f679034e9741a687a6ce33f2846f129 17-Nov-2010 Chris Lattner <sabre@nondot.org> now that AsmPrinter::EmitInlineAsm is factored right, we can eliminate the
cookie argument to the SourceMgr diagnostic stuff. This cleanly separates
LLVMContext's inlineasm handler from the sourcemgr error handling
definition, increasing type safety and cleaning things up.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119486 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
d1e1703c39742f3c9fc3d27a442ff59bbdbfb5aa 27-Sep-2010 Benjamin Kramer <benny.kra@googlemail.com> Push twines deeper into SourceMgr's error handling methods.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114847 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
b019491b8d7b171cd0835ba34f3b28b24dfcc3e0 06-Apr-2010 Chris Lattner <sabre@nondot.org> enhance SMDiagnostic to also maintain a pointer to the SourceMgr.
Add a simplified constructor for clients that don't have locations
like "file not found" errors.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100538 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
214aa8a2cf0c407e87d36a4ed2e36468d052669d 06-Apr-2010 Chris Lattner <sabre@nondot.org> give the SourceMgr object a cookie.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100504 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
8f0f480a10cd5b62914fd53611e696c5069fc62d 06-Apr-2010 Chris Lattner <sabre@nondot.org> Give llvm::SourceMgr the ability to have a client-specified
diagnostic handler.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100503 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
42210668da1b304488320ff01eea74733d9a1829 27-Jan-2010 Mikhail Glushenkov <foldr@codedgers.com> Make SMDiagnostic::Print a const method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94672 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
e690ffbe6dbcd1b04ef864dd61d4182143dd0c4c 27-Jan-2010 Mikhail Glushenkov <foldr@codedgers.com> Trailing whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
5e5442c98bbfaa93e74c3f1a7d104545e91ba00d 21-Jan-2010 Dan Gohman <gohman@apple.com> Avoid printing a spurious semicolon when there is no filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94071 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
4153982375811da8ffe8d8cc45e09d44c6f40642 22-Nov-2009 Daniel Dunbar <daniel@zuster.org> SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the source line output.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89627 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
1d96ccc69a265435cc1fb0eafe208857290e7dd2 11-Aug-2009 Chris Lattner <sabre@nondot.org> add a trivial line # cache to SourceMgr to make repeated queries to
FindLineNumber much faster when in sequence.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78693 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
eeb4a84ac8d91fb1d5a7c484a1c7047409faee30 03-Jul-2009 Chris Lattner <sabre@nondot.org> switch the .ll parser to use SourceMgr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74735 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
2f510aed9cbd24dca1fdc5aabe27325e5ade9e1a 03-Jul-2009 Chris Lattner <sabre@nondot.org> 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
/external/llvm/lib/Support/SourceMgr.cpp
3fb7683bec8c8edb24e80c95f3b0668c6ecc0ae6 30-Jun-2009 Daniel Dunbar <daniel@zuster.org> Normalize SourceMgr messages.
- Don't print "Parsing" in front of every message.

- Take additional "type" argument which is prepended to the message (with ": ")
if given.

- Update clients to print errors (warnings) as:
<filename>:<line number>: error(warning): ...


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74489 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
14ee48a5bae352780b767a14bd97e8e91800a95b 21-Jun-2009 Chris Lattner <sabre@nondot.org> rename SourceMgr::PrintError to PrintMessage.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73861 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
7ee5d5f97b3fa709038ff7fd640dc775efaadc26 21-Jun-2009 Chris Lattner <sabre@nondot.org> move include searching logic from TGLexer to SourceMgr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73845 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
8070ea3f068980d08cc10381f4c9369d19a91353 21-Jun-2009 Chris Lattner <sabre@nondot.org> Rename TGSourceMgr -> SourceMgr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73844 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
1e3a8a492471f5dc3f50452af9eb9a2dfb1aeb39 21-Jun-2009 Chris Lattner <sabre@nondot.org> rename TGLoc -> SMLoc.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73843 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
099e198ae84c1a6cfe2a7c79ee9f47fa67caac8f 21-Jun-2009 Chris Lattner <sabre@nondot.org> move TGSourceMgr class out of TableGen into libsupport.


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