Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Removing unused default switch cases in switches over enums that already ↵ | David Blaikie | 2012-01-16 | 1 | -1/+0 | |
| | | | | | | | | 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) llvm-svn: 148262 | |||||
* | remove the dead 'ShowLine' argument from SMDiagnostic. | Chris Lattner | 2011-10-16 | 1 | -11/+8 | |
| | | | | llvm-svn: 142108 | |||||
* | Make SMDiagnostic a little more sane. Instead of passing around ↵ | Chris Lattner | 2011-10-16 | 1 | -16/+22 | |
| | | | | | | | | note/warning/error as a string, pass it around as an enum. llvm-svn: 142107 | |||||
* | Enhance llvm::SourceMgr to support diagnostic ranges, the same way clang ↵ | Chris Lattner | 2011-10-16 | 1 | -21/+100 | |
| | | | | | | | | | | | | | | | 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 | |||||
* | Add new -d option to tblgen. It writes a make(1)-style dependency file. | Joerg Sonnenberger | 2011-06-01 | 1 | -4/+6 | |
| | | | | llvm-svn: 132395 | |||||
* | MemoryBuffer now return an error_code and returns a OwningPtr<MemoryBuffer> ↵ | Michael J. Spencer | 2010-12-16 | 1 | -4/+5 | |
| | | | | | | via an out parm. llvm-svn: 121958 | |||||
* | Fix whitespace. | Michael J. Spencer | 2010-12-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 121382 | |||||
* | Support/MemoryBuffer: Replace all uses of std::string *ErrMsg with ↵ | Michael J. Spencer | 2010-12-09 | 1 | -3/+4 | |
| | | | | | | error_code &ec. And fix clients. llvm-svn: 121379 | |||||
* | now that AsmPrinter::EmitInlineAsm is factored right, we can eliminate the | Chris Lattner | 2010-11-17 | 1 | -2/+1 | |
| | | | | | | | | 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. llvm-svn: 119486 | |||||
* | Push twines deeper into SourceMgr's error handling methods. | Benjamin Kramer | 2010-09-27 | 1 | -8/+8 | |
| | | | | llvm-svn: 114847 | |||||
* | enhance SMDiagnostic to also maintain a pointer to the SourceMgr. | Chris Lattner | 2010-04-06 | 1 | -1/+1 | |
| | | | | | | | Add a simplified constructor for clients that don't have locations like "file not found" errors. llvm-svn: 100538 | |||||
* | give the SourceMgr object a cookie. | Chris Lattner | 2010-04-06 | 1 | -1/+2 | |
| | | | | llvm-svn: 100504 | |||||
* | Give llvm::SourceMgr the ability to have a client-specified | Chris Lattner | 2010-04-06 | 1 | -1/+8 | |
| | | | | | | diagnostic handler. llvm-svn: 100503 | |||||
* | Make SMDiagnostic::Print a const method. | Mikhail Glushenkov | 2010-01-27 | 1 | -1/+1 | |
| | | | | llvm-svn: 94672 | |||||
* | Trailing whitespace. | Mikhail Glushenkov | 2010-01-27 | 1 | -19/+19 | |
| | | | | llvm-svn: 94671 | |||||
* | Avoid printing a spurious semicolon when there is no filename. | Dan Gohman | 2010-01-21 | 1 | -9/+12 | |
| | | | | llvm-svn: 94071 | |||||
* | SourceMgr: Add ShowLine argument to PrintMessage, to allow suppressing the ↵ | Daniel Dunbar | 2009-11-22 | 1 | -16/+19 | |
| | | | | | | source line output. llvm-svn: 89627 | |||||
* | add a trivial line # cache to SourceMgr to make repeated queries to | Chris Lattner | 2009-08-11 | 1 | -0/+40 | |
| | | | | | | FindLineNumber much faster when in sequence. llvm-svn: 78693 | |||||
* | switch the .ll parser to use SourceMgr. | Chris Lattner | 2009-07-02 | 1 | -10/+21 | |
| | | | | llvm-svn: 74735 | |||||
* | add an explicit class for holding llvm::SourceMgr diagnostics and use | Chris Lattner | 2009-07-02 | 1 | -19/+52 | |
| | | | | | | | | | | | | | | | 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 ^ llvm-svn: 74732 | |||||
* | Normalize SourceMgr messages. | Daniel Dunbar | 2009-06-30 | 1 | -3/+7 | |
| | | | | | | | | | | | | - 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): ... llvm-svn: 74489 | |||||
* | rename SourceMgr::PrintError to PrintMessage. | Chris Lattner | 2009-06-21 | 1 | -6/+6 | |
| | | | | llvm-svn: 73861 | |||||
* | move include searching logic from TGLexer to SourceMgr. | Chris Lattner | 2009-06-21 | 1 | -0/+20 | |
| | | | | llvm-svn: 73845 | |||||
* | Rename TGSourceMgr -> SourceMgr. | Chris Lattner | 2009-06-21 | 1 | -5/+5 | |
| | | | | llvm-svn: 73844 | |||||
* | rename TGLoc -> SMLoc. | Chris Lattner | 2009-06-21 | 1 | -6/+6 | |
| | | | | llvm-svn: 73843 | |||||
* | move TGSourceMgr class out of TableGen into libsupport. | Chris Lattner | 2009-06-21 | 1 | -0/+107 | |
llvm-svn: 73842 |