History log of /external/llvm/include/llvm/Support/SourceMgr.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ac9e819ca9ad93cfbcf0b7c5b0a7cbbd34cd9176 20-Jul-2013 Matt Arsenault <Matthew.Arsenault@amd.com> Fix size_t -> uint warnings with MSVC 64-bit build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186736 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
5c332dbd30d9398ed25b30c3080506f7b8e92290 05-May-2013 Dmitri Gribenko <gribozavr@gmail.com> Add ArrayRef constructor from None, and do the cleanups that this constructor enables

Patch by Robert Wilhelm.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
9b1f44b147ff943729207be2b0509f6e53d62bbb 10-Jan-2013 Jordan Rose <jordan_rose@apple.com> Add basic fix-its to SMDiagnostic.

Like Clang's FixItHint, SMFixIt represents an insertion, replacement, or
removal of source text. One or more fix-its can be emitted as part of
a diagnostic, and will be printed below the source range line to show the
user how they can fix their code.

Currently, the only client of SMFixIt is clang-tblgen; thus, the tests for
this behavior live in clang/test/TableGen/tg-fixits.td. If/when SMFixIt is
adopted within LLVM itself, those tests should be moved to the LLVM suite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172086 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
674be02d525d4e24bc6943ed9274958c580bcfbc 10-Jan-2013 Jakub Staszak <kubastaszak@gmail.com> Fix include guards so they exactly match file names.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172025 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
6c583141bf6b7a6b5f8125c1037ecbc089813288 18-Dec-2012 Eric Christopher <echristo@gmail.com> Add support for passing -main-file-name all the way through to
the assembler.

Part of PR14624

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170390 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
255f89faee13dc491cb64fbeae3c763e7e2ea4e6 03-Dec-2012 Chandler Carruth <chandlerc@gmail.com> Sort the #include lines for the include/... tree with the script.

AKA: Recompile *ALL* the source code!

This one went much better. No manual edits here. I spot-checked for
silliness and grep-checked for really broken edits and everything seemed
good. It all still compiles. Yell if you see something that looks goofy.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169133 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
f630e49efc7bf3f1716b6daab3c2cc11a908754a 16-Sep-2012 Craig Topper <craig.topper@gmail.com> Use LLVM_DELETED_FUNCTION for copy constructors and copy assignment operators that aren't implemented.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
a00b80b04c5edb08639c1c6b32e9231fd8b066f7 23-Aug-2012 Dmitri Gribenko <gribozavr@gmail.com> Fix a bunch of -Wdocumentation warnings.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162446 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
18e2f6e94cf9dc48bfc6dfa3848971aa88e334da 18-May-2012 Nick Kledzik <kledzik@apple.com> fix warnings when compiling with -Wshadow

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157061 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
b3a6194ebabbab1ef6db5603e958228cf723ab1b 06-May-2012 Chris Lattner <sabre@nondot.org> add missing header <shame>


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156244 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
04a0426cc283fe6a03f16612e0f172c3c97a1102 16-Oct-2011 Benjamin Kramer <benny.kra@googlemail.com> PR11143: Save the old diagnostic handler and call it when munging diagnostics for #line directives.

This reenables proper inline asm diagnostics in clang

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142132 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
acbaecd4c8e4d19207e63624dcd9e01947b51757 12-Oct-2011 Kevin Enderby <enderby@apple.com> Finish supporting cpp #file/line comments in assembler for error messages. So
for cpp pre-processed assembly we give correct filename and line numbers when
reporting errors in assembly files when using clang and -integrated-as on .s
files. rdar://8998895



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141814 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
d50f3f8731821bb9177bcaa44a0c18f7a26b3d80 01-Mar-2011 Dan Gohman <gohman@apple.com> Remove the showline argument from the SMDiagnostic constructor
which constructs a diagnostic with no line to show.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126787 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
32e20a45e5c838c139ffc5650177842796b5a77d 01-Mar-2011 Chris Lattner <sabre@nondot.org> add a missing const qualifier for consistency.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126742 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
26e064ff326ad7daa187143ad1164497f619ca40 04-Aug-2010 Dan Gohman <gohman@apple.com> Don't construct a std::string with a literal "".


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110180 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
779804353d40dff90fea50cda57e18f459b66f5f 06-Apr-2010 Chris Lattner <sabre@nondot.org> this accessor doesn't need to copy the string.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100542 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
e072ab869159015743d280a5b0390b68430b1dc0 06-Apr-2010 Chris Lattner <sabre@nondot.org> add a comment.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100490 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
9233b15d01ca62445bfc638f782243988c672e01 11-Feb-2010 Jeffrey Yasskin <jyasskin@google.com> Fix some of the memcheck errors found in the JIT unittests.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95856 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
1ae486a4a06a5132c094b9ce66836ff081fea3a6 18-Jan-2010 Sean Callanan <scallanan@apple.com> Split SMLoc out in its own header so that it can
be used independently of SourceMgr.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93780 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
3751aa559d0a020d1dba7d25d31900710a61e22c 11-Aug-2009 Dan Gohman <gohman@apple.com> Use the default copy-ctor, copy-assignment, and destructor.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78670 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
9146d0e89c051ea7accf185d97317306c2532c27 30-Jun-2009 Daniel Dunbar <daniel@zuster.org> Add SMLoc::isValid method.
- To support using SMLoc as a sentinel.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h
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/include/llvm/Support/SourceMgr.h