summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* eliminate DwarfDebug::shouldEmit, which is the same now as MMI::hasDebugInfoChris Lattner2010-04-051-5/+3
| | | | llvm-svn: 100386
* fix a regression on 2009-08-17-DebugInfo.mChris Lattner2010-04-051-0/+2
| | | | llvm-svn: 100385
* fastisel doesn't need DwarfWriter, remove some tendricles.Chris Lattner2010-04-051-10/+21
| | | | llvm-svn: 100381
* change SizeOf to take AsmPrinter instead of TargetData, Chris Lattner2010-04-051-2/+2
| | | | | | simplifying a bunch of code. llvm-svn: 100373
* 1) make DIE take AsmPrinter instead of DwarfPrinter.Chris Lattner2010-04-051-88/+97
| | | | | | 2) change DwarfDebug to not inherit from DwarfPrinter. llvm-svn: 100372
* Move EmitFrameMoves into AsmPrinter.Chris Lattner2010-04-041-2/+2
| | | | llvm-svn: 100371
* now that the magic is dispelled, move EmitSectionOffset to AsmPrinter.Chris Lattner2010-04-041-10/+11
| | | | llvm-svn: 100368
* only emit section labels if we have debug info, fixing a few Chris Lattner2010-04-041-4/+5
| | | | | | regtest failures. llvm-svn: 100366
* I was wrong, ocaml isn't referencing 'Ldata_begin', so remove it.Chris Lattner2010-04-041-9/+3
| | | | llvm-svn: 100365
* stop emitting some dead L labels.Chris Lattner2010-04-041-9/+12
| | | | llvm-svn: 100363
* Store an use the symbols emitted at the start of the debug Chris Lattner2010-04-041-47/+53
| | | | | | sections instead of magically rematerializing them later. llvm-svn: 100362
* remove the didInitial ivar, rename emitInitial to be moreChris Lattner2010-04-041-15/+12
| | | | | | | descriptive, change EmitSectionOffset back to taking a symbol instead of a string. llvm-svn: 100361
* simplify EmitSectionOffset a little bit, improve comments.Chris Lattner2010-04-041-8/+6
| | | | llvm-svn: 100360
* The "IsSmall" argument to EmitSectionOffset is always true,Chris Lattner2010-04-041-6/+6
| | | | | | constant fold it away. llvm-svn: 100356
* inline EmitDifference away.Chris Lattner2010-04-041-21/+23
| | | | llvm-svn: 100347
* move gettemplabel and getdwlabel to AsmPrinter and renameChris Lattner2010-04-041-73/+82
| | | | | | them for consistency. llvm-svn: 100345
* move uleb/sleb printing into AsmPrinter from DwarfPrinter.Chris Lattner2010-04-041-11/+11
| | | | llvm-svn: 100344
* clean up the asmprinter header and privatize some stuff.Chris Lattner2010-04-041-11/+11
| | | | llvm-svn: 100342
* remove TargetMachine.h #include, also, TRI isn't used frequently Chris Lattner2010-04-041-0/+1
| | | | | | enough to warrant caching in AsmPrinter, so remove it. llvm-svn: 100336
* remove the raw_ostream from various dwarf printing things.Chris Lattner2010-04-041-4/+4
| | | | | | | The only thing left is LEB printing, which uses EmitRawText for now. llvm-svn: 100325
* Switch the code generator (except the JIT) onto the new DebugLocChris Lattner2010-04-021-66/+71
| | | | | | | | | | | | | | | representation. This eliminates the 'DILocation' MDNodes for file/line/col tuples from -O0 -g codegen. This remove the old DebugLoc class, making it a typedef for DebugLoc, I'll rename NewDebugLoc next. I didn't update the JIT to use the new apis, so it will continue to work, but be as slow as before. Someone should eventually do this or, better yet, rip out the JIT debug info stuff and build the JIT on top of MC. llvm-svn: 100209
* Revert r100117.Devang Patel2010-04-011-18/+6
| | | | llvm-svn: 100145
* Do not eagerly record known previous location. DBG_VALUE may not cause a new ↵Devang Patel2010-04-011-1/+2
| | | | | | label due to one or other reason. llvm-svn: 100134
* Skip instructions until new scope is seen.Devang Patel2010-04-011-6/+18
| | | | llvm-svn: 100117
* Cosmetic changes.Devang Patel2010-04-011-5/+5
| | | | | | Update comment, rename a local variable. llvm-svn: 100116
* Reverting 100048; it broke two Frontend debug info tests.Stuart Hastings2010-03-311-23/+10
| | | | llvm-svn: 100058
* Debug info can now properly represent functions inside classes inside other ↵Stuart Hastings2010-03-311-10/+23
| | | | | | functions. Partial fix for Radar 7424645. llvm-svn: 100048
* Reduce string trashing.Benjamin Kramer2010-03-311-2/+2
| | | | llvm-svn: 100038
* DwarfDebug: Allocate DIEValues with a BumpPtrAllocator. Most of them areBenjamin Kramer2010-03-311-26/+20
| | | | | | | | | POD-like anyway, so we don't even care about calling their d'tors (DIEBlock being the exception). ~6% less mallocs and ~1% compile time improvement on clang -O0 -g oggenc.c llvm-svn: 100035
* tidy upChris Lattner2010-03-311-7/+8
| | | | llvm-svn: 99998
* MI != 0 is checked in the assert right above this.Chris Lattner2010-03-311-1/+1
| | | | llvm-svn: 99995
* use the isDebugValue() predicate and pop_back_val()Chris Lattner2010-03-311-7/+7
| | | | llvm-svn: 99993
* assert is a function-like macro, not a control flow operator.Chris Lattner2010-03-311-14/+14
| | | | llvm-svn: 99992
* add new apis for getting/setting !dbg metadata on Chris Lattner2010-03-311-1/+2
| | | | | | | | | instructions. In addition to being a convenience, they are faster than the old apis, particularly when not going from an MDKindID like people should be doing. llvm-svn: 99982
* Ignore invalid metadata.Devang Patel2010-03-301-0/+2
| | | | llvm-svn: 99938
* There is no need to fall through after processing DBG_VALUE machine instruction.Devang Patel2010-03-301-0/+1
| | | | llvm-svn: 99899
* Encode start location of debug value, communicated through DBG_VALUE machine ↵Devang Patel2010-03-291-15/+37
| | | | | | instruction, in a variable's DIE. llvm-svn: 99845
* fix a variety of issues were we'd start DebugTimer but Chris Lattner2010-03-291-40/+11
| | | | | | not stop it by using RAII. llvm-svn: 99832
* Refactor code to push DILocation prcessing into DwarfDebug.cpp from ↵Devang Patel2010-03-291-3/+42
| | | | | | | | AsmPrinter.cpp. This is same as r99772 (which was reverted) with just one meaningful difference where two source lines exchanged their positions. llvm-svn: 99816
* Revert 99772.Devang Patel2010-03-281-33/+3
| | | | llvm-svn: 99778
* Refactoring. Push DILocation processing in to DwarfDebug from AsmPrinter.Devang Patel2010-03-281-3/+33
| | | | llvm-svn: 99772
* Use SP filename directly instead of SP's context's filename.Devang Patel2010-03-241-2/+2
| | | | llvm-svn: 99429
* Emit DW_AT_low_pc and DW_AT_high_pc attributes for TAG_compile_unit.Devang Patel2010-03-221-4/+8
| | | | llvm-svn: 99225
* DW_AT_stmt_list attribute attached with a compile unit encodes offset of ↵Devang Patel2010-03-221-14/+4
| | | | | | line number information for this compile unit in debug_line section. This offset is always zero when only one compile unit is emitted in a object file. llvm-svn: 99223
* Fix a memory leak from DIE::addSiblingOffset() by adding the DIEValueJeffrey Yasskin2010-03-221-2/+3
| | | | | | it allocates to DwarfDebug::DIEValues. llvm-svn: 99196
* Fix EmitSectionOffset incorrect argument. DwarfDebug is emitting debug info ↵Devang Patel2010-03-171-9/+8
| | | | | | so isEH is always false. This was hiding until now from compilers because of default arguments. This was hiding from dwarf debug info users because for most of the platform isAbsoluteEHSectionOffsets() is same as isAbsoluteDebugSectionOffsets(). But Chris found it while updating dwarf printer to use MC*. llvm-svn: 98743
* Emit dwarf variable info communicated by code generator through DBG_VALUE ↵Devang Patel2010-03-151-12/+103
| | | | | | | | machine instructions. This is a work in progress. llvm-svn: 98556
* get MMI out of the label uniquing business, just go to MCContextChris Lattner2010-03-141-2/+2
| | | | | | to get unique assembler temporary labels. llvm-svn: 98489
* don't use getDWLabel("label" anymore, always go through MMI.Chris Lattner2010-03-141-2/+2
| | | | llvm-svn: 98485
* change SrcLineInfo to contain a label instead of a label ID.Chris Lattner2010-03-141-5/+3
| | | | llvm-svn: 98483
OpenPOWER on IntegriCloud