Devang Patel
|
4a8e6e83dc
|
Collect variable information during endFunction() instead of beginFunction().
llvm-svn: 104412
|
2010-05-22 00:04:14 +00:00 |
|
Devang Patel
|
1782aae355
|
Simplify
llvm-svn: 104338
|
2010-05-21 18:49:09 +00:00 |
|
Devang Patel
|
fbd6c45e06
|
Simplify.
llvm-svn: 104302
|
2010-05-21 00:10:20 +00:00 |
|
Devang Patel
|
490c8ab76d
|
Refactor.
llvm-svn: 104265
|
2010-05-20 19:57:06 +00:00 |
|
Devang Patel
|
e1c53f29d3
|
Split DbgVariable. Eventually, variable info will be communicated through frame index, or DBG_VALUE instruction, or collection of DBG_VALUE instructions. Plus each DbgVariable may not need a label.
llvm-svn: 104233
|
2010-05-20 16:36:41 +00:00 |
|
Devang Patel
|
a08130864e
|
Revert r104165.
llvm-svn: 104172
|
2010-05-19 21:58:28 +00:00 |
|
Devang Patel
|
0fe341e2e2
|
There is no need to maintain InsnsBeginScopeSet separately.
llvm-svn: 104165
|
2010-05-19 21:26:53 +00:00 |
|
Devang Patel
|
36debf8046
|
Do not forget to mark prcessed arguments.
llvm-svn: 103822
|
2010-05-14 21:55:50 +00:00 |
|
Devang Patel
|
e0a94bfe9f
|
Add support to preserve type info for the variables that are removed by the optimizer.
llvm-svn: 103798
|
2010-05-14 21:01:35 +00:00 |
|
Devang Patel
|
1a0df9a80e
|
Enable multiple Compile Units in one module.
This means now 'llvm-ld a.bc b.bc' will preserve debug info appropriately.
llvm-svn: 103439
|
2010-05-10 22:49:55 +00:00 |
|
Devang Patel
|
0625af2a88
|
Instead of just verifying compile unit, verify entire type, variable, namespace etc..
llvm-svn: 103327
|
2010-05-07 23:33:41 +00:00 |
|
Devang Patel
|
cbe7a8508a
|
Remove DIGlobal.
llvm-svn: 103325
|
2010-05-07 23:19:07 +00:00 |
|
Devang Patel
|
8d6a2b7428
|
Verify entire type descriptor not just tag.
llvm-svn: 103303
|
2010-05-07 21:45:47 +00:00 |
|
Devang Patel
|
32cc43c242
|
Wrap const MDNode * inside DIDescriptor.
llvm-svn: 103295
|
2010-05-07 20:54:48 +00:00 |
|
Devang Patel
|
cfa8e9d45f
|
Avoid DIDescriptor::getNode(). Use overloaded operators instead.
llvm-svn: 103272
|
2010-05-07 18:11:54 +00:00 |
|
Dan Gohman
|
7421ae48bf
|
Disable the new unknown-location code for now. It causes a major
increase in the debug line info section, and it's causing
regressions in a gdb testsuite.
llvm-svn: 103226
|
2010-05-07 01:08:53 +00:00 |
|
Dan Gohman
|
47d04e3e41
|
Update LabelsBeforeInsn also, when creating unknown-position labels.
llvm-svn: 103145
|
2010-05-06 00:29:41 +00:00 |
|
Dan Gohman
|
50849c63e4
|
Emit debug info for MachineInstrs with unknown debug locations, instead
of just letting them inherit the debug locations of adjacent instructions.
Debug info should aim to be either accurate or absent.
llvm-svn: 103135
|
2010-05-05 23:41:32 +00:00 |
|
Devang Patel
|
075e9b5d66
|
Set DW_AT_APPLE_omit_frame_ptr in endFunction() where MachineFunction is available all the time.
llvm-svn: 103001
|
2010-05-04 06:15:30 +00:00 |
|
Devang Patel
|
b4e3b9025c
|
Attach AT_APPLE_optimized attribute to optimized function's debug info.
llvm-svn: 102743
|
2010-04-30 19:38:23 +00:00 |
|
Devang Patel
|
50c9431203
|
Emit debug info for byval parameters.
llvm-svn: 102486
|
2010-04-28 01:39:28 +00:00 |
|
Chris Lattner
|
9e06e53fc6
|
remove some default arguments to EmitAlignment.
llvm-svn: 102482
|
2010-04-28 01:05:45 +00:00 |
|
Devang Patel
|
173b2b9d05
|
Refactor.
llvm-svn: 102481
|
2010-04-28 01:03:09 +00:00 |
|
Devang Patel
|
cfc76fdaf1
|
Use isReg(), isImm() and isFPImm().
llvm-svn: 102470
|
2010-04-27 22:04:41 +00:00 |
|
Devang Patel
|
1f34c2727d
|
Check operand type first.
llvm-svn: 102468
|
2010-04-27 21:49:04 +00:00 |
|
Devang Patel
|
1a0bbe25e3
|
Ignore DBG_VALUE instructions that points to undef values.
llvm-svn: 102463
|
2010-04-27 20:54:45 +00:00 |
|
Devang Patel
|
6c74a872a8
|
Identify when a lexical scope is split in to multiple instruction ranges. Emit such ranges using DW_AT_ranges.
This patch fixes bug (PR6894) introduced by previous version of this patch.
llvm-svn: 102454
|
2010-04-27 19:46:33 +00:00 |
|
Devang Patel
|
bd798ce8dd
|
Use DW_AT_entry_pc instead of DW_AT_low_pc/DW_AT_high_pc pair. This simplifies debug range entries.
llvm-svn: 102394
|
2010-04-26 22:54:28 +00:00 |
|
Dan Gohman
|
e9135cb3fb
|
Revert 102135, 102129, 102127, 102106, 102104, 102102, 102012, 102004,
because 102004 causes codegen to emit invalid assembly on at least
x86_64-unknown-gnu-linux.
llvm-svn: 102155
|
2010-04-23 01:18:53 +00:00 |
|
Devang Patel
|
ea2744f4dc
|
Adjust debug range offsets for isWeakForLinker() functions.
llvm-svn: 102127
|
2010-04-22 20:52:00 +00:00 |
|
Devang Patel
|
0fde4aeedd
|
Rename InsnAfterLabelMap and InsnBeforeLabelMap.
llvm-svn: 102106
|
2010-04-22 18:43:35 +00:00 |
|
Devang Patel
|
53f530d44c
|
Keep track of MCSymbol used to mark beginning of a function.
llvm-svn: 102104
|
2010-04-22 18:39:21 +00:00 |
|
Devang Patel
|
bae14a1cab
|
At this point Start and End are not null.
llvm-svn: 102102
|
2010-04-22 18:28:58 +00:00 |
|
Devang Patel
|
1a6e399874
|
Add command line option to disable debug info printing in .s file. This option does not impact debug info generation and preservation through earlier compile starges.
llvm-svn: 102012
|
2010-04-21 19:08:53 +00:00 |
|
Devang Patel
|
0940a8085e
|
Identify when a lexical scope is split in to multiple instruction ranges. Emit such ranges using DW_AT_ranges.
llvm-svn: 102004
|
2010-04-21 16:32:19 +00:00 |
|
Evan Cheng
|
4158a0ff6b
|
Implement -disable-non-leaf-fp-elim which disable frame pointer elimination
optimization for non-leaf functions. This will be hooked up to gcc's
-momit-leaf-frame-pointer option. rdar://7886181
llvm-svn: 101984
|
2010-04-21 03:18:23 +00:00 |
|
Dan Gohman
|
3df671a81c
|
Remove MachineFunction's DefaultDebugLoc member, and make DwarfDebug.cpp
responsible for figuring out what that's supposed to be on its own.
llvm-svn: 101844
|
2010-04-20 00:37:27 +00:00 |
|
Devang Patel
|
6188093cca
|
Add DW_AT_APPLE_omit_frame_ptr to encode -fomit-frame-pointer flag.
llvm-svn: 101805
|
2010-04-19 19:14:02 +00:00 |
|
Dan Gohman
|
88f7f6aeda
|
Use const_cast instead of a C-style cast to cast away const.
llvm-svn: 101639
|
2010-04-17 16:43:55 +00:00 |
|
Devang Patel
|
12563b3495
|
Add support to emit dwarf ranges.
llvm-svn: 101575
|
2010-04-16 23:33:45 +00:00 |
|
Dan Gohman
|
b29cda9b3c
|
Fix a bunch of namespace polution.
llvm-svn: 101376
|
2010-04-15 17:08:50 +00:00 |
|
Devang Patel
|
97bdf94da3
|
There is no need to track compile unit offsets if there is only one compile unit.
llvm-svn: 101315
|
2010-04-14 23:56:24 +00:00 |
|
Devang Patel
|
b7eadda495
|
Clear MachineInstr->MCSymbol maps at the end of a function.
llvm-svn: 101202
|
2010-04-14 01:18:28 +00:00 |
|
Devang Patel
|
12d150ea43
|
Do not include types without any definition in pubtypes list.
llvm-svn: 101171
|
2010-04-13 20:35:04 +00:00 |
|
Devang Patel
|
541019ddec
|
Clear InsnsBeginScopeSet and InsnsEndScopeSet at the end of function.
llvm-svn: 100867
|
2010-04-09 16:04:20 +00:00 |
|
Devang Patel
|
359b013129
|
Rename a function.
llvm-svn: 100797
|
2010-04-08 18:43:56 +00:00 |
|
Devang Patel
|
3ebd8931fb
|
One instruction may start (or end) multiple lexical scopes.
There is no need to remember labels identifying regions marked by such instructions in each scope.
llvm-svn: 100781
|
2010-04-08 16:50:29 +00:00 |
|
Devang Patel
|
2abed283e5
|
Remove dead code.
llvm-svn: 100771
|
2010-04-08 15:48:02 +00:00 |
|
Devang Patel
|
adfd4df12c
|
Delete out of date comment.
llvm-svn: 100769
|
2010-04-08 15:41:13 +00:00 |
|
Devang Patel
|
f1d5a1e994
|
Refactor.
llvm-svn: 100768
|
2010-04-08 15:37:09 +00:00 |
|