Jeffrey Yasskin
|
f7399bf929
|
Avoid leaking CompileUnits and DbgScopes from DwarfDebug. Leaks found by Valgrind!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97906 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-03-07 06:55:35 +00:00 |
|
Devang Patel
|
1eac3e7d1e
|
Fix grammar.
Thanks Duncan!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97572 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-03-02 17:58:15 +00:00 |
|
Devang Patel
|
6b506cbce0
|
Constructors and operators for anonymous aggregates does not names. Do not force empty AT_name attribute in such cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97533 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-03-02 01:26:20 +00:00 |
|
Devang Patel
|
22fb4b2a57
|
Before setting scope end marker, pay attention to scope begin marker and existing scope end marker, if any. Scope must begin before it ends and nested inlined scope do not truncate surrounding scope.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96445 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-17 02:20:34 +00:00 |
|
Dan Gohman
|
f451cb870e
|
Fix "the the" and similar typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95781 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-10 16:03:48 +00:00 |
|
Devang Patel
|
8581e0147c
|
Add declaration attribute to a variable DIE, if there is a separate DIE for the definition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95646 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-09 01:58:33 +00:00 |
|
Devang Patel
|
b4645643de
|
Set DW_AT_artificial only if argument is marked as artificial.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95461 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-06 01:02:37 +00:00 |
|
Devang Patel
|
6cda22eae4
|
Do not generate specification DIE for nested functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95452 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-05 23:09:20 +00:00 |
|
Devang Patel
|
c1dc8fff79
|
Emit appropriate expression to find virtual base offset.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95242 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-03 20:08:48 +00:00 |
|
Devang Patel
|
4e0d19dfd9
|
Provide interface to identifiy artificial methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95240 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-03 19:57:19 +00:00 |
|
Devang Patel
|
e3d6d220bd
|
Apparently gdb is not amused by empty lines in pubtypes section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95064 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-02 03:47:27 +00:00 |
|
Devang Patel
|
31acb89c65
|
NULL terminate name in pubtypes sections.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95062 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-02-02 03:37:03 +00:00 |
|
Devang Patel
|
1ee0cb9a55
|
Emit declaration DIE for the class static variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94870 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-30 01:08:30 +00:00 |
|
Devang Patel
|
8cbb6123ac
|
Add size and location info in DW_TAG_class_type descriptor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94822 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-29 18:34:58 +00:00 |
|
Chris Lattner
|
5c8697488a
|
remove a noop function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94616 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-26 23:26:29 +00:00 |
|
Chris Lattner
|
eec791afb1
|
constify a bunch of dwarf stuff now that the registerinfo method
is constified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94613 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-26 23:18:02 +00:00 |
|
Devang Patel
|
3139fcf9ed
|
Use AssertingVH, just to be paranoid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94593 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-26 21:39:14 +00:00 |
|
Devang Patel
|
b554499871
|
Emit DW_AT_containing_type attribute for a class if containing type is known.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94587 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-26 21:16:06 +00:00 |
|
Chris Lattner
|
a6594fc715
|
mcstreamerize .file and .file. This also fixes an issue where the
normal form of .file would fail if the filename had a weird character
in it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94437 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-25 18:58:59 +00:00 |
|
Chris Lattner
|
3586e5eccf
|
fix some issues where we weren't emitting enough newlines.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94370 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-24 19:01:06 +00:00 |
|
Chris Lattner
|
a801362e84
|
when emitting DIEs, emit the comment on the same line as the directive.
This fixes FrontendObjC/2009-11-30-Objc-ID.m
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94369 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-24 18:54:17 +00:00 |
|
Chris Lattner
|
4cf202ba06
|
remove one form of EmitString, just use EmitBytes instead. We must
be careful to add a \0 at the end though, because EmitString didn't
do this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94277 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-23 03:11:46 +00:00 |
|
Chris Lattner
|
faca5497a2
|
move "EOL" from asmprinter to dwarfprinter. It should eventually
be completely eliminated, but today is not that day.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94253 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-22 23:47:11 +00:00 |
|
Chris Lattner
|
894d75aa01
|
move uleb printing from asmprinter to dwarfprinter, mcize,
cleanup and eliminate a bunch more uses of "EOL".
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94250 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-22 23:18:42 +00:00 |
|
Chris Lattner
|
bb9078a6b2
|
move sleb printing out of asmprinter into dwarf printer, make clients
handle the comment better, MCize the non-.sleb case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94244 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-22 22:56:55 +00:00 |
|
Devang Patel
|
bc5201f837
|
Remove MetadataBase class because it is not adding significant value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94243 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-22 22:52:10 +00:00 |
|
Chris Lattner
|
066c9acca3
|
rename the dwarf class to DwarfPrinter. This matches the filename
and much more accurately describes what it is all about.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94233 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-22 22:23:57 +00:00 |
|
Chris Lattner
|
0ad9c911f5
|
inline away the trivial AsmPrinter::EOL() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94230 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-22 22:09:00 +00:00 |
|
Devang Patel
|
42aafd7e57
|
If a instruction belongs to another function (and not current function) as per debug info attached with the instruction then ignore the dangling lexical scope of this instruction. Such scopes are unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93967 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-20 02:05:23 +00:00 |
|
Devang Patel
|
622b02601b
|
MDNodes are not expected to disappear or replaced by another MDNode, so there is no need to pay the cost of WeakVH and ValueMaps.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93865 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-19 06:19:05 +00:00 |
|
Devang Patel
|
f54b85237c
|
Revert accident check-in from r93165.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93832 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-19 01:26:02 +00:00 |
|
Benjamin Kramer
|
1efd4fd56b
|
Switch some functions to take Twines, eliminate uses of StringExtras.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93680 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-17 07:46:39 +00:00 |
|
Chris Lattner
|
45111d160c
|
move the mangler into libtarget from vmcore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93664 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-16 21:57:06 +00:00 |
|
Chris Lattner
|
858431d0bc
|
Change DIEObjectLabel to take an MCSymbol instead of std::string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93647 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-16 18:50:28 +00:00 |
|
Devang Patel
|
a27f6e4e20
|
No need to use WeakVH here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93631 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-16 06:17:40 +00:00 |
|
Devang Patel
|
6b61f5816e
|
Replace DebugLocTuple with DILocation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93630 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-16 06:09:35 +00:00 |
|
Devang Patel
|
167207a99b
|
Add FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93562 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-15 22:08:16 +00:00 |
|
Devang Patel
|
c9b16cc108
|
Do not use AT_specification die for static variables. It confuses gdb.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93494 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-15 01:12:22 +00:00 |
|
Devang Patel
|
f8b72ca6c8
|
Do not emit multiple AT_container_type attributes.
We need to find a better way to emit this info.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93481 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-15 00:26:31 +00:00 |
|
Devang Patel
|
23598502ef
|
s/NextValueNo/NextMDValueNo while processing metadata.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93165 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-11 18:52:33 +00:00 |
|
Benjamin Kramer
|
3d594fd299
|
Kill dead store.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92920 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-07 17:50:57 +00:00 |
|
Devang Patel
|
ee890edd69
|
If a scope has only one instruction then first instruction is also the last instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92736 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-05 16:59:17 +00:00 |
|
Devang Patel
|
351ca33284
|
Use StringRef.startswith().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92671 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-05 01:46:14 +00:00 |
|
Devang Patel
|
ba1d8264e6
|
Fix debug_inlined section entries for routines whose names are changed through __asm() extension.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92533 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-04 23:04:36 +00:00 |
|
Devang Patel
|
344130e8ab
|
Fix begin and end markers for nested scopes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92505 91177308-0d34-0410-b5e6-96231b3b80d8
|
2010-01-04 20:44:00 +00:00 |
|
Chris Lattner
|
0b86a6f049
|
move these out of their own timer groups into the 'uncategorized' groups.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92206 91177308-0d34-0410-b5e6-96231b3b80d8
|
2009-12-28 07:41:18 +00:00 |
|
David Greene
|
f83adbc4c1
|
Change errs() to dbgs().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92096 91177308-0d34-0410-b5e6-96231b3b80d8
|
2009-12-24 00:31:35 +00:00 |
|
Devang Patel
|
6404e4e795
|
Add support to emit debug info for C++ namespaces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91440 91177308-0d34-0410-b5e6-96231b3b80d8
|
2009-12-15 19:16:48 +00:00 |
|
Devang Patel
|
ffe966c15b
|
Use DW_AT_specification to point to DIE describing function declaration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91278 91177308-0d34-0410-b5e6-96231b3b80d8
|
2009-12-14 16:18:45 +00:00 |
|
Devang Patel
|
d037d7a497
|
Construct CompileUnits lazily.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91159 91177308-0d34-0410-b5e6-96231b3b80d8
|
2009-12-11 21:37:07 +00:00 |
|