Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Fix a number of clang -Wsign-compare warnings that didn't have an obvious | John McCall | 2010-04-06 | 1 | -1/+1 | |
| | | | | | | | solution. The only reason these don't fire with gcc-4.2 is that gcc turns off part of -Wsign-compare in C++ on accident. llvm-svn: 100581 | |||||
* | Reverting 100530 & 100531 due to regressions in the GDB test suite. | Stuart Hastings | 2010-04-06 | 1 | -22/+8 | |
| | | | | llvm-svn: 100563 | |||||
* | Revise debug info machinery to digest nested functions and classes. | Stuart Hastings | 2010-04-06 | 1 | -8/+22 | |
| | | | | | | | | | | | A certain GDB testsuite case (local.cc) has a function nested inside a class nested inside another function. GCC presents the innermost function to llvm-convert first. Heretofore, the debug info mistakenly placed the inner function at module scope. This patch walks the GCC context links and instantiates the outer class and function so the debug info is properly nested. Radar 7426545. llvm-svn: 100530 | |||||
* | Output floating point representations in DWARF format. This is done by outputing | Bill Wendling | 2010-04-05 | 1 | -0/+26 | |
| | | | | | | the FP encoding directly as a hex representation. llvm-svn: 100487 | |||||
* | prune #includes, realize the MMI can never be null. | Chris Lattner | 2010-04-05 | 1 | -9/+12 | |
| | | | | llvm-svn: 100407 | |||||
* | change AsmPrinter to use DwarfDebug/DwarfException directly | Chris Lattner | 2010-04-05 | 1 | -4/+3 | |
| | | | | | | instead of going through DwarfWriter. llvm-svn: 100405 | |||||
* | trim some spurious references to DwarfWriter. SDIsel really doesn't | Chris Lattner | 2010-04-05 | 1 | -2/+2 | |
| | | | | | | need it anymore, so don't addRequire it. llvm-svn: 100400 | |||||
* | 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 |