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/lib/Support/SourceMgr.cpp
|
453f4f01302f00651aae2fc7658f6e23a2beadb0 |
|
15-May-2013 |
David Blaikie <dblaikie@gmail.com> |
Use only explicit bool conversion operators BitVector/SmallBitVector::reference::operator bool remain implicit since they model more exactly a bool, rather than something else that can be boolean tested. The most common (non-buggy) case are where such objects are used as return expressions in bool-returning functions or as boolean function arguments. In those cases I've used (& added if necessary) a named function to provide the equivalent (or sometimes negative, depending on convenient wording) test. One behavior change (YAMLParser) was made, though no test case is included as I'm not sure how to reach that code path. Essentially any comparison of llvm::yaml::document_iterators would be invalid if neither iterator was at the end. This helped uncover a couple of bugs in Clang - test cases provided for those in a separate commit along with similar changes to `operator bool` instances in Clang. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181868 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
|
74b3c8da4800c7e8ba8f019879db29738ecc5f74 |
|
15-Feb-2013 |
Benjamin Kramer <benny.kra@googlemail.com> |
Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175264 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
|
9b1e854698d036cae6ab1d6576f709bec6fce082 |
|
11-Jan-2013 |
Jordan Rose <jordan_rose@apple.com> |
SMDiagnostic: don't emit ranges if there are /any/ multibyte characters. Right now, only OS X has a way to determine the column width of a string (PR14910). Until we have a good way to deal with this, we just won't print carets, source ranges, or fixits for SMDiagnostic if the source line has multibyte characters in it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172164 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
|
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/lib/Support/SourceMgr.cpp
|
3ebe59c892051375623fea55e977ff559fdb3323 |
|
07-Jan-2013 |
Jordan Rose <jordan_rose@apple.com> |
Change SMRange to be half-open (exclusive end) instead of closed (inclusive) This is necessary not only for representing empty ranges, but for handling multibyte characters in the input. (If the end pointer in a range refers to a multibyte character, should it point to the beginning or the end of the character in a char array?) Some of the code in the asm parsers was already assuming this anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171765 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
|
d04a8d4b33ff316ca4cf961e06c9e312eff8e64f |
|
03-Dec-2012 |
Chandler Carruth <chandlerc@gmail.com> |
Use the new script to sort the includes of every file under lib. Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169131 91177308-0d34-0410-b5e6-96231b3b80d8
/external/llvm/lib/Support/SourceMgr.cpp
|
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
|