summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit message (Collapse)AuthorAgeFilesLines
* sink the 'name' and 'isdirective' state out of MCSection into its derived ↵Chris Lattner2009-08-081-4/+3
| | | | | | | | classes. This totally optimizes PIC16 sections by not having an 'isdirective' bit anymore!! ;-) llvm-svn: 78517
* eliminate CurrentSection, rename CurrentSection_ -> CurrentSection, make it ↵Chris Lattner2009-08-031-1/+1
| | | | | | | | private, eliminate IsInTextSection. llvm-svn: 78017
* move dwarf debug info section selection stuff from TAI toChris Lattner2009-08-021-24/+26
| | | | | | TLOF, unifying all the dwarf targets at the same time. llvm-svn: 77889
* switch off of 'Section' onto MCSection. We're not properly usingChris Lattner2009-07-311-4/+5
| | | | | | MCSection subclasses yet, but this is a step in the right direction. llvm-svn: 77708
* Start using DebugInfoFinder.Devang Patel2009-07-301-13/+11
| | | | llvm-svn: 77621
* Rip all of the global variable lowering logic out of TargetAsmInfo. SinceChris Lattner2009-07-281-6/+7
| | | | | | | | | | | | | | | | | | | | it is highly specific to the object file that will be generated in the end, this introduces a new TargetLoweringObjectFile interface that is implemented for each of ELF/MachO/COFF/Alpha/PIC16 and XCore. Though still is still a brutal and ugly refactoring, this is a major step towards goodness. This patch also: 1. fixes a bunch of dangling pointer problems in the PIC16 backend. 2. disables the TargetLowering copy ctor which PIC16 was accidentally using. 3. gets us closer to xcore having its own crazy target section flags and pic16 not having to shadow sections with its own objects. 4. fixes wierdness where ELF targets would set CStringSection but not CStringSection_. Factor the code better. 5. fixes some bugs in string lowering on ELF targets. llvm-svn: 77294
* Remove Value::getName{Start,End}, the last of the old Name APIs.Daniel Dunbar2009-07-261-2/+1
| | | | llvm-svn: 77152
* Skip special LLVM prefix '1' while emitting linknage name.Devang Patel2009-07-161-4/+25
| | | | | | This prefix is used by LLVM to inform the asm printer to not emit usual global symbol prefix before the symbol name. llvm-svn: 75875
* Change the internal interface to makeNameProper to take a bool thatChris Lattner2009-07-141-2/+2
| | | | | | | | | | | | indicates whether the label is private or not, instead of taking prefix stuff. One effect of this is that symbols will be generated with *just* the private prefix, instead of both the private prefix *and* the user-label-prefix, but this doesn't matter as long as it is consistent. For example we'll now get "Lfoo" instead of "L_foo". These are just assembler temporary labels anyway, so they never even make it into the .o file. llvm-svn: 75607
* Do not use Mangler to remove '1' from linkage name.Devang Patel2009-07-141-13/+4
| | | | llvm-svn: 75574
* Use assertion.Devang Patel2009-07-131-2/+4
| | | | llvm-svn: 75540
* Use AsmPrinter's Mangler to remove leading '1' from linkage names.Devang Patel2009-07-131-4/+9
| | | | llvm-svn: 75515
* revert rev. 75503 for now.Devang Patel2009-07-131-15/+3
| | | | llvm-svn: 75507
* Use Mangler to remove leading '1' from linkage names.Devang Patel2009-07-131-3/+15
| | | | llvm-svn: 75503
* Accidently dropped this while removing dead code in previous commit.Devang Patel2009-07-071-0/+1
| | | | llvm-svn: 74953
* Remove dead code.Devang Patel2009-07-071-27/+2
| | | | llvm-svn: 74949
* Struct types are described using field types only.Devang Patel2009-06-291-3/+0
| | | | llvm-svn: 74477
* s/MainCU/ModuleCU/gDevang Patel2009-06-291-27/+27
| | | | llvm-svn: 74452
* Multiple DW_TAG_compile_unit is not used, afaict, on any target.Devang Patel2009-06-291-103/+41
| | | | | | Update dwarf writer to only emit one DW_TAG_compile_unit per .o file. llvm-svn: 74449
* Remove debug info anchors - llvm.dbg.compile_units, llvm.dbg.subprogramsDevang Patel2009-06-261-81/+26
| | | | | | and llvm.dbg.global_variables. llvm-svn: 74251
* Simplify.Devang Patel2009-06-251-3/+6
| | | | llvm-svn: 74215
* Down with statics!Owen Anderson2009-06-241-2/+4
| | | | llvm-svn: 74134
* simplify macro debug info directive handling.Chris Lattner2009-06-181-4/+4
| | | | llvm-svn: 73736
* Use MainCU if it is available.Devang Patel2009-06-161-2/+3
| | | | llvm-svn: 73457
* Gracefully handle imbalanced inline function begin and end markers.Devang Patel2009-06-151-1/+8
| | | | llvm-svn: 73426
* llvm.dbg.region.end() intrinsic is not required to be in _last_ basic block ↵Devang Patel2009-06-131-1/+5
| | | | | | | | in a function. If that happens then any basic block that follows (lexically) the block with regin.end will not have scope info available. LexicalScopeStack relies on processing basic block in CFG order, but this processing order is not guaranteed. Things get complicated when the optimizer gets a chance to optimizer IR with dbg intrinsics. Apply defensive patch to preserve at least one lexical scope till the end of function. llvm-svn: 73282
* Clear AbstractInstanceRootMap at the end of the function.Devang Patel2009-06-121-0/+1
| | | | llvm-svn: 73244
* Remove some unnecessary #includes.Dan Gohman2009-06-051-1/+0
| | | | llvm-svn: 72948
* Accidental commit. This isn't ready for prime time just yet.Bill Wendling2009-06-011-2/+6
| | | | llvm-svn: 72699
* Untabification.Bill Wendling2009-05-301-6/+2
| | | | llvm-svn: 72604
* Minor code cleanup. No functionality change.Bill Wendling2009-05-201-18/+7
| | | | llvm-svn: 72198
* Merge 'ConstructFunctionDbgScope' and 'ConstructAbstractDbgScope'.Bill Wendling2009-05-201-35/+12
| | | | llvm-svn: 72197
* Rename 'New*' methods to 'Create*' to be consistent. 'NewString' isn't used.Bill Wendling2009-05-201-7/+7
| | | | llvm-svn: 72196
* Add comment for emit section.Bill Wendling2009-05-201-0/+4
| | | | llvm-svn: 72195
* Move 'Emit' methods down to their own place.Bill Wendling2009-05-201-720/+720
| | | | llvm-svn: 72194
* Revert r72192. It was causing a build failure.Bill Wendling2009-05-201-746/+763
| | | | llvm-svn: 72193
* Do some mechanical changes. Combine the 'construct abastract dbg thingy' in withBill Wendling2009-05-201-763/+746
| | | | | | | the 'constract function dbg thingy'. Rename some methods to make them consistent with the rest of the methods. Move the 'Emit' methods to the end of the file. llvm-svn: 72192
* Don't set the "location" information for inlined functions' variables.Bill Wendling2009-05-181-7/+16
| | | | llvm-svn: 72064
* Small code cleanup.Bill Wendling2009-05-181-9/+4
| | | | llvm-svn: 72057
* RecordVariable is called each time a DECLARE node is encountered. For an inlinedBill Wendling2009-05-181-8/+31
| | | | | | | | function, this could be many, many times. We don't want to re-add variables to that DIE for each time. We just want to add them once. Check to make sure that we haven't added them already. llvm-svn: 72047
* Split out the DwarfDebug module from the DwarfWriter module.Bill Wendling2009-05-151-0/+2613
Again, no intendtional functionality change. llvm-svn: 71854
OpenPOWER on IntegriCloud