summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* finally blast DwarfWriter away.Chris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100406 91177308-0d34-0410-b5e6-96231b3b80d8
* change AsmPrinter to use DwarfDebug/DwarfException directlyChris Lattner2010-04-05
| | | | | | | instead of going through DwarfWriter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100405 91177308-0d34-0410-b5e6-96231b3b80d8
* trim some spurious references to DwarfWriter. SDIsel really doesn'tChris Lattner2010-04-05
| | | | | | | | need it anymore, so don't addRequire it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100400 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate DwarfDebug::shouldEmit, which is the same now as MMI::hasDebugInfoChris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100386 91177308-0d34-0410-b5e6-96231b3b80d8
* fix a regression on 2009-08-17-DebugInfo.mChris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100385 91177308-0d34-0410-b5e6-96231b3b80d8
* selection dag doesn't need DwarfWriter, remove some tendrils.Chris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100382 91177308-0d34-0410-b5e6-96231b3b80d8
* fastisel doesn't need DwarfWriter, remove some tendricles.Chris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100381 91177308-0d34-0410-b5e6-96231b3b80d8
* just have all targets create the DwarfWriter.Chris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100377 91177308-0d34-0410-b5e6-96231b3b80d8
* nuke DwarfPrinterChris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100375 91177308-0d34-0410-b5e6-96231b3b80d8
* make DwarfException not inherit from DwarfPrinter.Chris Lattner2010-04-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100374 91177308-0d34-0410-b5e6-96231b3b80d8
* change SizeOf to take AsmPrinter instead of TargetData, Chris Lattner2010-04-05
| | | | | | | simplifying a bunch of code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100373 91177308-0d34-0410-b5e6-96231b3b80d8
* 1) make DIE take AsmPrinter instead of DwarfPrinter.Chris Lattner2010-04-05
| | | | | | | | 2) change DwarfDebug to not inherit from DwarfPrinter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100372 91177308-0d34-0410-b5e6-96231b3b80d8
* Move EmitFrameMoves into AsmPrinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100371 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify code and reduce indentation.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100369 91177308-0d34-0410-b5e6-96231b3b80d8
* now that the magic is dispelled, move EmitSectionOffset to AsmPrinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100368 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate the magic AbsoluteDebugSectionOffsets MAI hook,Chris Lattner2010-04-04
| | | | | | | | | | | which is really a property of the section being referenced. Add a predicate to MCSection to replace it. Yay for reduction in magic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100367 91177308-0d34-0410-b5e6-96231b3b80d8
* only emit section labels if we have debug info, fixing a few Chris Lattner2010-04-04
| | | | | | | regtest failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100366 91177308-0d34-0410-b5e6-96231b3b80d8
* I was wrong, ocaml isn't referencing 'Ldata_begin', so remove it.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100365 91177308-0d34-0410-b5e6-96231b3b80d8
* add some assertions to EmitSectionOffset.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100364 91177308-0d34-0410-b5e6-96231b3b80d8
* stop emitting some dead L labels.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100363 91177308-0d34-0410-b5e6-96231b3b80d8
* Store an use the symbols emitted at the start of the debug Chris Lattner2010-04-04
| | | | | | | sections instead of magically rematerializing them later. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100362 91177308-0d34-0410-b5e6-96231b3b80d8
* remove the didInitial ivar, rename emitInitial to be moreChris Lattner2010-04-04
| | | | | | | | descriptive, change EmitSectionOffset back to taking a symbol instead of a string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100361 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify EmitSectionOffset a little bit, improve comments.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100360 91177308-0d34-0410-b5e6-96231b3b80d8
* The "IsSmall" argument to EmitSectionOffset is always true,Chris Lattner2010-04-04
| | | | | | | constant fold it away. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100356 91177308-0d34-0410-b5e6-96231b3b80d8
* eliminate the "isEH" argument to EmitSectionOffset.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100355 91177308-0d34-0410-b5e6-96231b3b80d8
* isAbsoluteEHSectionOffsets always returns false, eliminate it Chris Lattner2010-04-04
| | | | | | | and substitute false at the one call site. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100354 91177308-0d34-0410-b5e6-96231b3b80d8
* move some more stuff to asmprinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100351 91177308-0d34-0410-b5e6-96231b3b80d8
* simplify some code.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100350 91177308-0d34-0410-b5e6-96231b3b80d8
* move EmitEncodingByte to AsmPrinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100349 91177308-0d34-0410-b5e6-96231b3b80d8
* move EmitCFAByte to AsmPrinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100348 91177308-0d34-0410-b5e6-96231b3b80d8
* inline EmitDifference away.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100347 91177308-0d34-0410-b5e6-96231b3b80d8
* resolve a fixme.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100346 91177308-0d34-0410-b5e6-96231b3b80d8
* move gettemplabel and getdwlabel to AsmPrinter and renameChris Lattner2010-04-04
| | | | | | | them for consistency. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100345 91177308-0d34-0410-b5e6-96231b3b80d8
* move uleb/sleb printing into AsmPrinter from DwarfPrinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100344 91177308-0d34-0410-b5e6-96231b3b80d8
* more interface cleanup make some helpers static functions.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100343 91177308-0d34-0410-b5e6-96231b3b80d8
* clean up the asmprinter header and privatize some stuff.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100342 91177308-0d34-0410-b5e6-96231b3b80d8
* use stringref instead of strtol to avoid errno gymnastics.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100341 91177308-0d34-0410-b5e6-96231b3b80d8
* split inline asm support out to its own .cpp file.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100340 91177308-0d34-0410-b5e6-96231b3b80d8
* inline processDebugLoc and simplify it.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100339 91177308-0d34-0410-b5e6-96231b3b80d8
* minor tidying.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100338 91177308-0d34-0410-b5e6-96231b3b80d8
* clean up the asmprinter interface a bit, rename a fewChris Lattner2010-04-04
| | | | | | | | | "Print" methods to "Emit". Emit is something that goes to an mc streamer, Print is something that goes to a raw_ostream (for inline asm) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100337 91177308-0d34-0410-b5e6-96231b3b80d8
* remove TargetMachine.h #include, also, TRI isn't used frequently Chris Lattner2010-04-04
| | | | | | | enough to warrant caching in AsmPrinter, so remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100336 91177308-0d34-0410-b5e6-96231b3b80d8
* lazily allocate the GCMetadataPrinters map and remove DenseMapChris Lattner2010-04-04
| | | | | | | from the AsmPrinter interface. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100331 91177308-0d34-0410-b5e6-96231b3b80d8
* Momentous day: remove the "O" member from AsmPrinter. Now all Chris Lattner2010-04-04
| | | | | | | | | | | "asm printering" happens through MCStreamer. This also Streamerizes PIC16 debug info, which escaped my attention. This removes a leak from LLVMTargetMachine of the 'legacy' output stream. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100327 91177308-0d34-0410-b5e6-96231b3b80d8
* now that all operand printing happens to specified streams, we canChris Lattner2010-04-04
| | | | | | | | print function level inline asm with EmitInlineAsm instead of writing it directly to "O". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100326 91177308-0d34-0410-b5e6-96231b3b80d8
* remove the raw_ostream from various dwarf printing things.Chris Lattner2010-04-04
| | | | | | | | The only thing left is LEB printing, which uses EmitRawText for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100325 91177308-0d34-0410-b5e6-96231b3b80d8
* mcize the gc metadata printing stuff.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100324 91177308-0d34-0410-b5e6-96231b3b80d8
* use EmitRawText instead of O in DwarfPrinter.Chris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100323 91177308-0d34-0410-b5e6-96231b3b80d8
* fix PrintAsmOperand and PrintAsmMemoryOperand to pass down Chris Lattner2010-04-04
| | | | | | | raw_ostream to print to. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100313 91177308-0d34-0410-b5e6-96231b3b80d8
* change this back tooChris Lattner2010-04-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100310 91177308-0d34-0410-b5e6-96231b3b80d8