Adrian Prantl
303cef8c35
Allow for line tables to switch to a different file in the middle
...
of a lexical scope. This is not yet a proper inlined scope.
Swift SVN r6034
2013-07-06 00:20:38 +00:00
Adrian Prantl
6f526e3ca5
Make the line table more contiguous by reusing the last location if have
...
no line information but are still in the same scope.
Swift SVN r6033
2013-07-06 00:20:35 +00:00
Adrian Prantl
2f03310869
Don't prepend the current directory to an absolute path in the compile unit.
...
Swift SVN r6021
2013-07-05 21:47:33 +00:00
Adrian Prantl
f394af89b6
Reluctantly move the DWARF language identifier for Swift into the low range again (0xf).
...
Swift SVN r6014
2013-07-05 20:20:12 +00:00
Adrian Prantl
4a73ec14c9
Address a bunch of review comments. Thanks Joe & Chris!
...
Swift SVN r6012
2013-07-05 17:19:15 +00:00
Adrian Prantl
0c34b57c74
Debug Info: Add basic support for global and stack-allocated variables and
...
their types.
- DebugTypeInfo holds all type info we need to emit debug information.
- Type info is limited to name, location, and storage size.
- As a side-effect: verbose LLVM IR allocas in debug builds!
Swift SVN r5980
2013-07-03 23:02:04 +00:00
Doug Gregor
5d175efad1
Don't try to get a StringRef from an empty identifier.
...
This is a hackaround for <rdar://problem/14346129>.
Swift SVN r5971
2013-07-03 17:22:15 +00:00
Dave Abrahams
096ffc6eaf
Silence warnings in the release build
...
Swift SVN r5950
2013-07-01 21:42:16 +00:00
Adrian Prantl
ae9bd9397b
Debug Info: Generate scope information for many more builtin/artificial functions.
...
Swift SVN r5876
2013-06-28 20:05:41 +00:00
Adrian Prantl
ceb32c281c
Debug Info: Attach (some of the) functions without sources to their scopes.
...
Various cleanups.
Swift SVN r5863
2013-06-28 00:52:07 +00:00
Joe Groff
3e2194a662
IRGen: Quell initialization order warning.
...
Swift SVN r5835
2013-06-27 05:15:30 +00:00
Adrian Prantl
de32b201d0
Debug Info: Add support for subprograms.
...
This means that single-stepping in lldb actually works now!
Swift SVN r5828
2013-06-27 00:46:30 +00:00
Adrian Prantl
2db17656f5
Debug Info: Wire up the CU's main file to point to the the first input file passed on the command line.
...
Swift SVN r5805
2013-06-25 22:07:33 +00:00
Adrian Prantl
5cf577282d
Debug Info: Wire up more compile unit metadata and clean up the code a bit.
...
Swift SVN r5794
2013-06-25 00:19:32 +00:00
Adrian Prantl
a719bbc851
Initialize struct to zero the C++11 way. Thanks, Jordan.
...
Swift SVN r5787
2013-06-24 20:25:40 +00:00
Adrian Prantl
0f7533dc7e
Debug Info! Add basic support for line tables, compilation units, files,
...
and lexical scopes, which can be enabled through the new -g option.
When -g is enabled, line tables and scopes compile all the way
down to DWARF.
Changes to SIL:
- In addition to a SILLocation, every instruction now also has a pointer
to a SILDebugScope (its containing lexical scope).
- Added LexicalScope, which is to be used for all Scopes we want to show
up in the debug info.
Swift SVN r5772
2013-06-23 00:09:17 +00:00