summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for separating strings for the split debug info DWARF5Eric Christopher2013-01-071-5/+31
| | | | | | | | | | | | | proposal. This leaves the strings in the skeleton die as strp, but in all dwo files they're accessed now via DW_FORM_GNU_str_index. Add support for dumping these sections and modify the fission-cu.ll testcase to have the correct strings and form. Fix a small bug in the fixed form sizes routine that involved out of array accesses for the table and add a FIXME in the extractFast routine to fix this up. llvm-svn: 171779
* Move all of the header files which are involved in modelling the LLVM IRChandler Carruth2013-01-021-4/+4
| | | | | | | | | | | | | | | | | | | | | into their new header subdirectory: include/llvm/IR. This matches the directory structure of lib, and begins to correct a long standing point of file layout clutter in LLVM. There are still more header files to move here, but I wanted to handle them in separate commits to make tracking what files make sense at each layer easier. The only really questionable files here are the target intrinsic tablegen files. But that's a battle I'd rather not fight today. I've updated both CMake and Makefile build systems (I think, and my tests think, but I may have missed something). I've also re-sorted the includes throughout the project. I'll be committing updates to Clang, DragonEgg, and Polly momentarily. llvm-svn: 171366
* For the dwarf5 split debug info code split out the string sectionEric Christopher2012-12-271-16/+36
| | | | | | per compile unit/skeleton compile unit. Update tests accordingly. llvm-svn: 171133
* Whitespace and 80-column cleanup.Eric Christopher2012-12-201-4/+9
| | | | llvm-svn: 170771
* Start splitting out the debug string section handling by moving itEric Christopher2012-12-201-18/+23
| | | | | | into the DwarfUnits class. llvm-svn: 170770
* Split out abbreviations for the skeleton info from the rest ofEric Christopher2012-12-191-18/+45
| | | | | | the abbreviations. Part of implementing split dwarf. llvm-svn: 170589
* To simplify some code move the unit emission into the holders.Eric Christopher2012-12-151-17/+26
| | | | | | Make emitDIE public accordingly. No functional change. llvm-svn: 170258
* Use begin and end label names from the section for info.Eric Christopher2012-12-151-7/+8
| | | | llvm-svn: 170257
* Use default label name for a section in emitting abbreviationEric Christopher2012-12-131-5/+8
| | | | | | section to help prep some code to be split about. llvm-svn: 170088
* Update some comments.Eric Christopher2012-12-111-4/+4
| | | | llvm-svn: 169907
* Refactor out the abbreviation handling into a separate class thatEric Christopher2012-12-101-21/+20
| | | | | | | | | | | | controls each of the abbreviation sets (only a single one at the moment) and computes offsets separately as well for each set of DIEs. No real function change, ordering of abbreviations for the skeleton CU changed but only because we're computing in a separate order. Fix the testcase not to care. llvm-svn: 169793
* Remove blank line at top of file.Eric Christopher2012-12-101-1/+0
| | | | llvm-svn: 169779
* Use the somewhat semantic term "split dwarf" it more matches what'sEric Christopher2012-12-101-21/+22
| | | | | | going on and makes a lot of the terminology in comments make more sense. llvm-svn: 169758
* Delete the FissionCU.Eric Christopher2012-12-101-0/+3
| | | | llvm-svn: 169757
* Reorder fission variables.Eric Christopher2012-12-101-2/+2
| | | | llvm-svn: 169756
* Comment change made in r169304 as requested by Eric Christopher.David Blaikie2012-12-041-0/+2
| | | | llvm-svn: 169315
* Reapply r160148 (reverted in r163570) fixing spurious breakpoints in modern GDBDavid Blaikie2012-12-041-1/+1
| | | | | | | | | | | | | | | | | This reapplies the fix for PR13303 now with more justification. Based on my execution of the GDB 7.5 test suite this results in: expected passes: 16101 -> 20890 (+30%) unexpected failures: 4826 -> 637 (-77%) There are 23 checks that used to pass and now fail. They are all in gdb.reverse. Investigating a few looks like they were accidentally passing due to extra breakpoints being set by this bug. They're generally due to the difference in end location between gcc and clang, the test suite is trying to set breakpoints on the closing '}' that clang doesn't associate with any instructions. llvm-svn: 169304
* Fix PR12942: Allow two CUs to be generated from the same source file.Eli Bendersky2012-12-031-18/+24
| | | | | | Thanks Eric for the review. llvm-svn: 169142
* Use the new script to sort the includes of every file under lib.Chandler Carruth2012-12-031-16/+16
| | | | | | | | | | | | | | | | | Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
* Add some first skeleton work for the DWARF5 Fission proposal. EmitEric Christopher2012-11-301-8/+102
| | | | | | | | | part of the compile unit CU and start separating out information into the various sections that will be pulled out later. WIP. llvm-svn: 169061
* Attempt to make the comments for dwarf debug look more likeEric Christopher2012-11-271-116/+89
| | | | | | the coding standard would like. llvm-svn: 168737
* Reapply section moving, make sure string section is output last.Eric Christopher2012-11-271-24/+54
| | | | llvm-svn: 168736
* Revert rearrangement of debug info sections to unblock the botsEric Christopher2012-11-271-59/+26
| | | | | | and O0 + debug codegen. llvm-svn: 168680
* Add in sections for the fission case (no change so incorrect) andEric Christopher2012-11-271-1/+32
| | | | | | add a TODO for starting. llvm-svn: 168643
* Reorder section output ordering.Eric Christopher2012-11-271-25/+27
| | | | llvm-svn: 168638
* Whitespace cleanup.Eric Christopher2012-11-271-27/+27
| | | | llvm-svn: 168637
* Pull some code out into functions to make rearranging them a bit easier.Eric Christopher2012-11-221-46/+68
| | | | llvm-svn: 168481
* Update for some of the coding standard before rearranging functionsEric Christopher2012-11-211-37/+37
| | | | | | around. llvm-svn: 168401
* Remove constness from this, it modifies the output stream as doesEric Christopher2012-11-201-1/+1
| | | | | | everything else underneath. llvm-svn: 168395
* Remove unused function argument, add a bit to the comment.Eric Christopher2012-11-201-3/+3
| | | | llvm-svn: 168387
* Remove a function argument and propagate const around accordingly.Eric Christopher2012-11-191-4/+8
| | | | llvm-svn: 168338
* Whitespace and 80-col.Eric Christopher2012-11-191-49/+49
| | | | llvm-svn: 168337
* Move section label emission to module end. Nothing should beEric Christopher2012-11-191-3/+3
| | | | | | | depending on them being emitted before the text and/or data sections and testing didn't uncover any. llvm-svn: 168321
* Add an option to enable prototype "fission" capabilities and debug changes.Eric Christopher2012-11-121-0/+14
| | | | llvm-svn: 167765
* Add comment describing what's going on here.Bill Wendling2012-11-071-1/+4
| | | | llvm-svn: 167525
* When we're updating the subprogram scope DIE, we want to determine if we'reBill Wendling2012-11-071-36/+37
| | | | | | | | | | updating an abstract DIE or not. If we are, then we use that. Its children will be added on later, as well as the object pointer attribute. Otherwise, this function may be called with a concrete DIE twice and adding the children and object pointer attribute to it twice. <rdar://problem/12401423&12600340> llvm-svn: 167524
* Revert the majority of the next patch in the address space series:Chandler Carruth2012-11-011-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r165941: Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis. Despite this commit log, this change primarily changed stuff outside of VMCore, and those changes do not carry any tests for correctness (or even plausibility), and we have consistently found questionable or flat out incorrect cases in these changes. Most of them are probably correct, but we need to devise a system that makes it more clear when we have handled the address space concerns correctly, and ideally each pass that gets updated would receive an accompanying test case that exercises that pass specificaly w.r.t. alternate address spaces. However, from this commit, I have retained the new C API entry points. Those were an orthogonal change that probably should have been split apart, but they seem entirely good. In several places the changes were very obvious cleanups with no actual multiple address space code added; these I have not reverted when I spotted them. In a few other places there were merge conflicts due to a cleaner solution being implemented later, often not using address spaces at all. In those cases, I've preserved the new code which isn't address space dependent. This is part of my ongoing effort to clean out the partial address space code which carries high risk and low test coverage, and not likely to be finished before the 3.2 release looms closer. Duncan and I would both like to see the above issues addressed before we return to these changes. llvm-svn: 167222
* Replace some instances of UniqueVector with SetVector, which is slightly ↵Benjamin Kramer2012-10-311-3/+3
| | | | | | | | cheaper. No functionality change. llvm-svn: 167116
* Fix grammar.Bill Wendling2012-10-301-2/+2
| | | | llvm-svn: 167029
* Resubmit the changes to llvm core to update the functions to support ↵Micah Villmow2012-10-151-9/+9
| | | | | | different pointer sizes on a per address space basis. llvm-svn: 165941
* Revert 165732 for further review.Micah Villmow2012-10-111-9/+9
| | | | llvm-svn: 165747
* Add in the first iteration of support for llvm/clang/lldb to allow variable ↵Micah Villmow2012-10-111-9/+9
| | | | | | per address space pointer sizes to be optimized correctly. llvm-svn: 165726
* Fixup comment.Eric Christopher2012-10-081-1/+1
| | | | llvm-svn: 165427
* Fixup comments.Eric Christopher2012-10-081-2/+2
| | | | llvm-svn: 165426
* Move TargetData to DataLayout.Micah Villmow2012-10-081-10/+10
| | | | llvm-svn: 165402
* Update this a bit more to represent how the prologue should work:Eric Christopher2012-10-041-3/+4
| | | | | | | | | | a) frame setup instructions define the prologue b) we shouldn't change our location mid-stream Add a test to make sure that the stack adjustment stays within the prologue. llvm-svn: 165250
* Revert "Don't use a debug location for frame setup instructions in the"Eric Christopher2012-10-021-4/+3
| | | | | | | This reverts 165055 and 165052 temporarily while I look at debugger failures. llvm-svn: 165071
* 80-col.Eric Christopher2012-10-021-2/+2
| | | | llvm-svn: 165054
* Don't use a debug location for frame setup instructions in theEric Christopher2012-10-021-3/+4
| | | | | | | prologue. Also skip frame setup instructions when looking for the first location. llvm-svn: 165052
* Have the DbgVariable "isArtificial" and "isObjectPointer" notEric Christopher2012-09-211-1/+3
| | | | | | | | | | | | care about it being an argument variable so that we can decide that captured block and lambda vars that don't happen to be arguments could be an argument pointer. Add the object pointer for one case onto the subprogram die. rdar://12001329 llvm-svn: 164419
OpenPOWER on IntegriCloud