Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | eliminate DwarfDebug::shouldEmit, which is the same now as MMI::hasDebugInfo | Chris Lattner | 2010-04-05 | 1 | -5/+3 | |
| | | | | llvm-svn: 100386 | |||||
* | fix a regression on 2009-08-17-DebugInfo.m | Chris Lattner | 2010-04-05 | 1 | -0/+2 | |
| | | | | llvm-svn: 100385 | |||||
* | fastisel doesn't need DwarfWriter, remove some tendricles. | Chris Lattner | 2010-04-05 | 1 | -10/+21 | |
| | | | | llvm-svn: 100381 | |||||
* | change SizeOf to take AsmPrinter instead of TargetData, | Chris Lattner | 2010-04-05 | 1 | -2/+2 | |
| | | | | | | simplifying a bunch of code. llvm-svn: 100373 | |||||
* | 1) make DIE take AsmPrinter instead of DwarfPrinter. | Chris Lattner | 2010-04-05 | 1 | -88/+97 | |
| | | | | | | 2) change DwarfDebug to not inherit from DwarfPrinter. llvm-svn: 100372 | |||||
* | Move EmitFrameMoves into AsmPrinter. | Chris Lattner | 2010-04-04 | 1 | -2/+2 | |
| | | | | llvm-svn: 100371 | |||||
* | now that the magic is dispelled, move EmitSectionOffset to AsmPrinter. | Chris Lattner | 2010-04-04 | 1 | -10/+11 | |
| | | | | llvm-svn: 100368 | |||||
* | only emit section labels if we have debug info, fixing a few | Chris Lattner | 2010-04-04 | 1 | -4/+5 | |
| | | | | | | regtest failures. llvm-svn: 100366 | |||||
* | I was wrong, ocaml isn't referencing 'Ldata_begin', so remove it. | Chris Lattner | 2010-04-04 | 1 | -9/+3 | |
| | | | | llvm-svn: 100365 | |||||
* | stop emitting some dead L labels. | Chris Lattner | 2010-04-04 | 1 | -9/+12 | |
| | | | | llvm-svn: 100363 | |||||
* | Store an use the symbols emitted at the start of the debug | Chris Lattner | 2010-04-04 | 1 | -47/+53 | |
| | | | | | | sections instead of magically rematerializing them later. llvm-svn: 100362 | |||||
* | remove the didInitial ivar, rename emitInitial to be more | Chris Lattner | 2010-04-04 | 1 | -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 Lattner | 2010-04-04 | 1 | -8/+6 | |
| | | | | llvm-svn: 100360 | |||||
* | The "IsSmall" argument to EmitSectionOffset is always true, | Chris Lattner | 2010-04-04 | 1 | -6/+6 | |
| | | | | | | constant fold it away. llvm-svn: 100356 | |||||
* | inline EmitDifference away. | Chris Lattner | 2010-04-04 | 1 | -21/+23 | |
| | | | | llvm-svn: 100347 | |||||
* | move gettemplabel and getdwlabel to AsmPrinter and rename | Chris Lattner | 2010-04-04 | 1 | -73/+82 | |
| | | | | | | them for consistency. llvm-svn: 100345 | |||||
* | move uleb/sleb printing into AsmPrinter from DwarfPrinter. | Chris Lattner | 2010-04-04 | 1 | -11/+11 | |
| | | | | llvm-svn: 100344 | |||||
* | clean up the asmprinter header and privatize some stuff. | Chris Lattner | 2010-04-04 | 1 | -11/+11 | |
| | | | | llvm-svn: 100342 | |||||
* | remove TargetMachine.h #include, also, TRI isn't used frequently | Chris Lattner | 2010-04-04 | 1 | -0/+1 | |
| | | | | | | enough to warrant caching in AsmPrinter, so remove it. llvm-svn: 100336 | |||||
* | remove the raw_ostream from various dwarf printing things. | Chris Lattner | 2010-04-04 | 1 | -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 DebugLoc | Chris Lattner | 2010-04-02 | 1 | -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 Patel | 2010-04-01 | 1 | -18/+6 | |
| | | | | llvm-svn: 100145 | |||||
* | Do not eagerly record known previous location. DBG_VALUE may not cause a new ↵ | Devang Patel | 2010-04-01 | 1 | -1/+2 | |
| | | | | | | label due to one or other reason. llvm-svn: 100134 | |||||
* | Skip instructions until new scope is seen. | Devang Patel | 2010-04-01 | 1 | -6/+18 | |
| | | | | llvm-svn: 100117 | |||||
* | Cosmetic changes. | Devang Patel | 2010-04-01 | 1 | -5/+5 | |
| | | | | | | Update comment, rename a local variable. llvm-svn: 100116 | |||||
* | Reverting 100048; it broke two Frontend debug info tests. | Stuart Hastings | 2010-03-31 | 1 | -23/+10 | |
| | | | | llvm-svn: 100058 | |||||
* | Debug info can now properly represent functions inside classes inside other ↵ | Stuart Hastings | 2010-03-31 | 1 | -10/+23 | |
| | | | | | | functions. Partial fix for Radar 7424645. llvm-svn: 100048 | |||||
* | Reduce string trashing. | Benjamin Kramer | 2010-03-31 | 1 | -2/+2 | |
| | | | | llvm-svn: 100038 | |||||
* | DwarfDebug: Allocate DIEValues with a BumpPtrAllocator. Most of them are | Benjamin Kramer | 2010-03-31 | 1 | -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 up | Chris Lattner | 2010-03-31 | 1 | -7/+8 | |
| | | | | llvm-svn: 99998 | |||||
* | MI != 0 is checked in the assert right above this. | Chris Lattner | 2010-03-31 | 1 | -1/+1 | |
| | | | | llvm-svn: 99995 | |||||
* | use the isDebugValue() predicate and pop_back_val() | Chris Lattner | 2010-03-31 | 1 | -7/+7 | |
| | | | | llvm-svn: 99993 | |||||
* | assert is a function-like macro, not a control flow operator. | Chris Lattner | 2010-03-31 | 1 | -14/+14 | |
| | | | | llvm-svn: 99992 | |||||
* | add new apis for getting/setting !dbg metadata on | Chris Lattner | 2010-03-31 | 1 | -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 Patel | 2010-03-30 | 1 | -0/+2 | |
| | | | | llvm-svn: 99938 | |||||
* | There is no need to fall through after processing DBG_VALUE machine instruction. | Devang Patel | 2010-03-30 | 1 | -0/+1 | |
| | | | | llvm-svn: 99899 | |||||
* | Encode start location of debug value, communicated through DBG_VALUE machine ↵ | Devang Patel | 2010-03-29 | 1 | -15/+37 | |
| | | | | | | instruction, in a variable's DIE. llvm-svn: 99845 | |||||
* | fix a variety of issues were we'd start DebugTimer but | Chris Lattner | 2010-03-29 | 1 | -40/+11 | |
| | | | | | | not stop it by using RAII. llvm-svn: 99832 | |||||
* | Refactor code to push DILocation prcessing into DwarfDebug.cpp from ↵ | Devang Patel | 2010-03-29 | 1 | -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 Patel | 2010-03-28 | 1 | -33/+3 | |
| | | | | llvm-svn: 99778 | |||||
* | Refactoring. Push DILocation processing in to DwarfDebug from AsmPrinter. | Devang Patel | 2010-03-28 | 1 | -3/+33 | |
| | | | | llvm-svn: 99772 | |||||
* | Use SP filename directly instead of SP's context's filename. | Devang Patel | 2010-03-24 | 1 | -2/+2 | |
| | | | | llvm-svn: 99429 | |||||
* | Emit DW_AT_low_pc and DW_AT_high_pc attributes for TAG_compile_unit. | Devang Patel | 2010-03-22 | 1 | -4/+8 | |
| | | | | llvm-svn: 99225 | |||||
* | DW_AT_stmt_list attribute attached with a compile unit encodes offset of ↵ | Devang Patel | 2010-03-22 | 1 | -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 DIEValue | Jeffrey Yasskin | 2010-03-22 | 1 | -2/+3 | |
| | | | | | | it allocates to DwarfDebug::DIEValues. llvm-svn: 99196 | |||||
* | Fix EmitSectionOffset incorrect argument. DwarfDebug is emitting debug info ↵ | Devang Patel | 2010-03-17 | 1 | -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 Patel | 2010-03-15 | 1 | -12/+103 | |
| | | | | | | | | machine instructions. This is a work in progress. llvm-svn: 98556 | |||||
* | get MMI out of the label uniquing business, just go to MCContext | Chris Lattner | 2010-03-14 | 1 | -2/+2 | |
| | | | | | | to get unique assembler temporary labels. llvm-svn: 98489 | |||||
* | don't use getDWLabel("label" anymore, always go through MMI. | Chris Lattner | 2010-03-14 | 1 | -2/+2 | |
| | | | | llvm-svn: 98485 | |||||
* | change SrcLineInfo to contain a label instead of a label ID. | Chris Lattner | 2010-03-14 | 1 | -5/+3 | |
| | | | | llvm-svn: 98483 |