summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DIE.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use the new script to sort the includes of every file under lib.Chandler Carruth2012-12-031-1/+1
| | | | | | | | | | | | | | | | | Sooooo many of these had incorrect or strange main module includes. I have manually inspected all of these, and fixed the main module include to be the nearest plausible thing I could find. If you own or care about any of these source files, I encourage you to take some time and check that these edits were sensible. I can't have broken anything (I strictly added headers, and reordered them, never removed), but they may not be the headers you'd really like to identify as containing the API being implemented. Many forward declarations and missing includes were added to a header files to allow them to parse cleanly when included first. The main module rule does in fact have its merits. =] llvm-svn: 169131
* Revert the majority of the next patch in the address space series:Chandler Carruth2012-11-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r165941: Resubmit the changes to llvm core to update the functions to support different pointer sizes on a per address space basis. Despite this commit log, this change primarily changed stuff outside of VMCore, and those changes do not carry any tests for correctness (or even plausibility), and we have consistently found questionable or flat out incorrect cases in these changes. Most of them are probably correct, but we need to devise a system that makes it more clear when we have handled the address space concerns correctly, and ideally each pass that gets updated would receive an accompanying test case that exercises that pass specificaly w.r.t. alternate address spaces. However, from this commit, I have retained the new C API entry points. Those were an orthogonal change that probably should have been split apart, but they seem entirely good. In several places the changes were very obvious cleanups with no actual multiple address space code added; these I have not reverted when I spotted them. In a few other places there were merge conflicts due to a cleaner solution being implemented later, often not using address spaces at all. In those cases, I've preserved the new code which isn't address space dependent. This is part of my ongoing effort to clean out the partial address space code which carries high risk and low test coverage, and not likely to be finished before the 3.2 release looms closer. Duncan and I would both like to see the above issues addressed before we return to these changes. llvm-svn: 167222
* Resubmit the changes to llvm core to update the functions to support ↵Micah Villmow2012-10-151-4/+4
| | | | | | different pointer sizes on a per address space basis. llvm-svn: 165941
* Revert 165732 for further review.Micah Villmow2012-10-111-4/+4
| | | | llvm-svn: 165747
* Add in the first iteration of support for llvm/clang/lldb to allow variable ↵Micah Villmow2012-10-111-4/+4
| | | | | | per address space pointer sizes to be optimized correctly. llvm-svn: 165726
* Move TargetData to DataLayout.Micah Villmow2012-10-081-5/+5
| | | | llvm-svn: 165402
* 80-col fixup.Eric Christopher2012-09-101-1/+2
| | | | llvm-svn: 163569
* Clean this up slightly, doesn't really fall through.Eric Christopher2012-08-291-2/+1
| | | | llvm-svn: 162848
* Use DW_FORM_flag_present to save space in debug information if we'reEric Christopher2012-08-241-0/+8
| | | | | | | | not in darwin gdb compat mode. Fixes rdar://10975088 llvm-svn: 162526
* Convert assert(0) to llvm_unreachableCraig Topper2012-02-051-1/+1
| | | | llvm-svn: 149816
* Remove generation of DW_AT_sibling. Nothing as far as I can tell uses it.Eric Christopher2012-01-241-9/+0
| | | | | | | | Saves about 1.5% on debug info size. rdar://10278198 llvm-svn: 148794
* More dead code removal (using -Wunreachable-code)David Blaikie2012-01-201-4/+2
| | | | llvm-svn: 148578
* Unweaken vtables as per ↵David Blaikie2011-12-201-0/+1
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch llvm-svn: 146960
* Add more PRI.64 macros for MSVC and use them throughout the codebase.Benjamin Kramer2011-11-051-2/+2
| | | | llvm-svn: 143799
* Always use the string pool, even when it makes the .o larger. This may helpNick Lewycky2011-10-281-18/+0
| | | | | | | tools that read the debug info in the .o files by making the DIE sizes more consistent. llvm-svn: 143186
* Teach our Dwarf emission to use the string pool.Nick Lewycky2011-10-271-0/+2
| | | | llvm-svn: 143097
* Fix a lot of typos, improve (but not necessarily fix) grammaros and reflow someNick Lewycky2011-07-291-1/+1
| | | | | | lines. No functionality change. llvm-svn: 136458
* Roll out r126425 and r126450 to see if it fixes the failures on the buildbots.Cameron Zwarich2011-02-251-23/+0
| | | | llvm-svn: 126488
* Enable DebugInfo support for COFF object files.Devang Patel2011-02-241-0/+23
| | | | | | Patch by Nathan Jeffords! llvm-svn: 126425
* Use DW_FORM_addr for DW_AT_entry_pc.Devang Patel2010-06-281-0/+2
| | | | llvm-svn: 107085
* change SizeOf to take AsmPrinter instead of TargetData, Chris Lattner2010-04-051-13/+10
| | | | | | simplifying a bunch of code. llvm-svn: 100373
* 1) make DIE take AsmPrinter instead of DwarfPrinter.Chris Lattner2010-04-051-25/+22
| | | | | | 2) change DwarfDebug to not inherit from DwarfPrinter. llvm-svn: 100372
* inline EmitDifference away.Chris Lattner2010-04-041-2/+2
| | | | llvm-svn: 100347
* move uleb/sleb printing into AsmPrinter from DwarfPrinter.Chris Lattner2010-04-041-16/+16
| | | | llvm-svn: 100344
* DwarfDebug: Allocate DIEValues with a BumpPtrAllocator. Most of them areBenjamin Kramer2010-03-311-2/+3
| | | | | | | | | 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
* DW_AT_stmt_list attribute attached with a compile unit encodes offset of ↵Devang Patel2010-03-221-25/+0
| | | | | | 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-1/+2
| | | | | | it allocates to DwarfDebug::DIEValues. llvm-svn: 99196
* inline away a form of IsPCRelative, eliminating the Chris Lattner2010-03-101-1/+2
| | | | | | dead IsPCRel argument. llvm-svn: 98117
* eliminate a bunch of \n's that are being printed to O. Next up is to killChris Lattner2010-03-091-11/+6
| | | | | | off "EOL". llvm-svn: 98102
* simplify EmitSectionOffset to always use .set if it isChris Lattner2010-03-081-2/+2
| | | | | | | | | available, the only thing this affects is that we produce .set in one case we didn't before, which shouldn't harm anything. Make EmitSectionOffset call EmitDifference instead of duplicating it. llvm-svn: 98005
* merge DIEObjectLabel and DIEDwarfLabel into DIELabel.Chris Lattner2010-03-081-28/+4
| | | | | | Yes, DIE you fiendish labels, die all of you. llvm-svn: 97995
* elimiante the DWLabel class, using MCSymbol instead. Start Chris Lattner2010-03-081-14/+5
| | | | | | | switching some stuff over to passing around MCSymbol* instead of stem+ID. llvm-svn: 97993
* Fix to get it to compile.Bill Wendling2010-02-111-1/+1
| | | | llvm-svn: 95840
* Don't print out a default newline when emitting the section offset. There areBill Wendling2010-02-111-0/+1
| | | | | | almost always comments afterwards that need printing. llvm-svn: 95839
* remove one form of EmitString, just use EmitBytes instead. We mustChris Lattner2010-01-231-1/+3
| | | | | | | be careful to add a \0 at the end though, because EmitString didn't do this. llvm-svn: 94277
* move uleb printing from asmprinter to dwarfprinter, mcize,Chris Lattner2010-01-221-13/+15
| | | | | | cleanup and eliminate a bunch more uses of "EOL". llvm-svn: 94250
* move sleb printing out of asmprinter into dwarf printer, make clientsChris Lattner2010-01-221-1/+1
| | | | | | handle the comment better, MCize the non-.sleb case. llvm-svn: 94244
* rename the dwarf class to DwarfPrinter. This matches the filenameChris Lattner2010-01-221-8/+8
| | | | | | and much more accurately describes what it is all about. llvm-svn: 94233
* inline away the trivial AsmPrinter::EOL() method.Chris Lattner2010-01-221-1/+2
| | | | llvm-svn: 94230
* eliminate some uses of AsmPrinter::EmitIntXXXChris Lattner2010-01-201-6/+9
| | | | llvm-svn: 93996
* Switch some functions to take Twines, eliminate uses of StringExtras.h.Benjamin Kramer2010-01-171-0/+1
| | | | llvm-svn: 93680
* Change DIEObjectLabel to take an MCSymbol instead of std::string.Chris Lattner2010-01-161-2/+3
| | | | llvm-svn: 93647
* Change errs() to dbgs().David Greene2009-12-241-3/+4
| | | | llvm-svn: 92094
* Cosmetic changes, which were long overdue, in DwarfDebug.cpp.Devang Patel2009-11-211-2/+2
| | | | llvm-svn: 89537
* There is no need to use FoldingSet to unique DIEs. Devang Patel2009-11-211-98/+0
| | | | | | DIEs are created from MDNode, which are already uniqued. And DwarfDebug already uses ValueMaps to find and use existing DIE for a given MDNode. llvm-svn: 89518
* convert the DIE printing stuff to use raw_ostream instead of std::ostream.Chris Lattner2009-08-231-20/+20
| | | | | | Tweak #includes. llvm-svn: 79800
* Rename TargetAsmInfo (and its subclasses) to MCAsmInfo.Chris Lattner2009-08-221-4/+4
| | | | llvm-svn: 79763
* llvm_unreachable->llvm_unreachable(0), LLVM_UNREACHABLE->llvm_unreachable.Torok Edwin2009-07-141-4/+4
| | | | | | | | | This adds location info for all llvm_unreachable calls (which is a macro now) in !NDEBUG builds. In NDEBUG builds location info and the message is off (it only prints "UREACHABLE executed"). llvm-svn: 75640
* assert(0) -> LLVM_UNREACHABLE.Torok Edwin2009-07-111-4/+5
| | | | | | | | | Make llvm_unreachable take an optional string, thus moving the cerr<< out of line. LLVM_UNREACHABLE is now a simple wrapper that makes the message go away for NDEBUG builds. llvm-svn: 75379
* Down with _even more_ statics!Owen Anderson2009-06-241-1/+0
| | | | llvm-svn: 74137
OpenPOWER on IntegriCloud