Argyrios Kyrtzidis
99512e4220
When printing SourceRanges, add an option to not print the text as well.
...
Swift SVN r6836
2013-08-02 02:50:32 +00:00
Dmitri Hrybenko
e1c4ae3174
Wrap llvm::SourceMgr in swift::SourceManager so that we can add new members
...
to the source manager.
Swift SVN r6815
2013-08-01 20:39:22 +00:00
Argyrios Kyrtzidis
f478157ab4
Revert "Print source ranges of the AST nodes when dumping the AST."
...
See if it fixes the buildbot.
This reverts commit 5957.
Swift SVN r5960
2013-07-02 16:45:07 +00:00
Argyrios Kyrtzidis
0a3fc1b195
Print source ranges of the AST nodes when dumping the AST.
...
Swift SVN r5959
2013-07-02 00:42:01 +00:00
Ted Kremenek
219b7bd430
Move LLVM.h to libBasic.
...
Swift SVN r2550
2012-08-03 23:54:29 +00:00
Chris Lattner
3ae29d8c82
provide facilities to elide the filename for a sourceloc if it matches the previous sourceloc. We now
...
print ranges as: [t.swift:22 - :23] instead of [t.swift:22 - t.swift:23].
Swift SVN r1753
2012-05-05 21:14:36 +00:00
Chris Lattner
d77d0d3fe3
refactor SourceRange printing out of Verifier.cpp into methods on SourceRange and SourceLoc.
...
Swift SVN r1752
2012-05-05 21:08:44 +00:00
Doug Gregor
0223f3edf1
Implement Expr::getSourceRange() and introduce proper support for this
...
function into all of the expression nodes. Re-implement
Expr::getStartLoc() in terms of this function, and add it's brother
Expr::getEndLoc(), removing the specialized implementations.
Clean up the source ranges of implicitly-created tuple expressions in
the process.
Swift SVN r855
2011-11-10 00:25:48 +00:00
Doug Gregor
d4d7ac1e6b
SMRange is inclusive of the end location, so adjust our end location
...
accordingly when printing diagnostics.
Swift SVN r854
2011-11-09 22:07:29 +00:00
Chris Lattner
3ec9a9720a
Add datatypes for swift to represent source locations and ranges, which are
...
distinct from the SMXXX types. This is important because SMRange and
SourceRange have subtly different semantics, and is also nice to isolate
SMLoc from swift.
Swift SVN r749
2011-10-18 01:21:29 +00:00