summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a number of clang -Wsign-compare warnings that didn't have an obviousJohn McCall2010-04-061-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 Hastings2010-04-061-22/+8
| | | | llvm-svn: 100563
* Revise debug info machinery to digest nested functions and classes.Stuart Hastings2010-04-061-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 outputingBill Wendling2010-04-051-0/+26
| | | | | | the FP encoding directly as a hex representation. llvm-svn: 100487
* prune #includes, realize the MMI can never be null.Chris Lattner2010-04-051-9/+12
| | | | llvm-svn: 100407
* change AsmPrinter to use DwarfDebug/DwarfException directlyChris Lattner2010-04-051-4/+3
| | | | | | instead of going through DwarfWriter. llvm-svn: 100405
* trim some spurious references to DwarfWriter. SDIsel really doesn'tChris Lattner2010-04-051-2/+2
| | | | | | need it anymore, so don't addRequire it. llvm-svn: 100400
* 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
OpenPOWER on IntegriCloud