summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/DwarfWriter.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Just make the Dwarf timer group static inside of the getter function. No ↵Bill Wendling2009-03-101-7/+5
| | | | | | need to alloc/dealloc. llvm-svn: 66591
* Don't put static functions in anonymous namespace.Bill Wendling2009-03-101-4/+0
| | | | llvm-svn: 66589
* These should *stop* the timer, not start it again.Bill Wendling2009-03-101-2/+2
| | | | llvm-svn: 66586
* - Fix misspelled method name.Bill Wendling2009-03-101-11/+5
| | | | | | - Remove unused method. llvm-svn: 66585
* - Create GetOrCreateSourceID from getOrCreateSourceID. GetOrCreateSourceID isBill Wendling2009-03-101-79/+82
| | | | | | | | | | | the untimed version of getOrCreateSourceID. getOrCreateSourceID calls GetOrCreateSourceID, of course. - Move some methods into the "private" section. Constify at least one method. - General clean-ups. llvm-svn: 66582
* Refine the Dwarf writer timers so that they measure exception writing and debugBill Wendling2009-03-101-143/+169
| | | | | | writing individually. llvm-svn: 66577
* Add a timer to the DwarfWriter pass that measures the total time it takes toBill Wendling2009-03-101-8/+110
| | | | | | emit exception and debug Dwarf info. llvm-svn: 66571
* Pass in a std::string when getting the names of debugging things. This cuts downBill Wendling2009-03-091-20/+37
| | | | | | on the number of times a std::string is created and copied. llvm-svn: 66396
* Introduce new linkage types linkonce_odr, weak_odr, common_odrDuncan Sands2009-03-071-7/+10
| | | | | | | | | | | | | | | | | | | | | and extern_weak_odr. These are the same as the non-odr versions, except that they indicate that the global will only be overridden by an *equivalent* global. In C, a function with weak linkage can be overridden by a function which behaves completely differently. This means that IP passes have to skip weak functions, since any deductions made from the function definition might be wrong, since the definition could be replaced by something completely different at link time. This is not allowed in C++, thanks to the ODR (One-Definition-Rule): if a function is replaced by another at link-time, then the new function must be the same as the original function. If a language knows that a function or other global can only be overridden by an equivalent global, it can give it the weak_odr linkage type, and the optimizers will understand that it is alright to make deductions based on the function body. The code generators on the other hand map weak and weak_odr linkage to the same thing. llvm-svn: 66339
* It is possible that subprgoram definition is only encoding return value ↵Devang Patel2009-02-271-2/+6
| | | | | | directly, instsad of an DIArray of all argument types. llvm-svn: 65643
* Print variable's display name in dwarf DIE.Devang Patel2009-02-251-1/+1
| | | | llvm-svn: 65468
* Clean up dwarf writer, part 1. This eliminated the horrible recursive ↵Evan Cheng2009-02-251-316/+395
| | | | | | | | getGlobalVariablesUsing and replaced it something readable. It eliminated use of slow UniqueVector and replaced it with StringMap, SmallVector, and DenseMap, etc. It also fixed some non-deterministic behavior. This is a very minor compile time win. llvm-svn: 65438
* gdb uses DW_AT_prototyped to identify K&R style in C based languages.Devang Patel2009-02-241-0/+5
| | | | | | This fixes objc.dg/dwarf-prototypes.m scan-assembler DW_AT_prototyped from llvmgcc42 test suite. llvm-svn: 65357
* If there is not any debug info available for any global variables and any ↵Devang Patel2009-02-241-13/+26
| | | | | | subprograms then there is not any debug info to emit. llvm-svn: 65352
* - Early exit a nested block.Bill Wendling2009-02-201-23/+27
| | | | | | | - Correct comment. - Whitespace changes. llvm-svn: 65149
* Add an accessor method to DwarfWriter to tell of debugging info should be ↵Bill Wendling2009-02-201-5/+11
| | | | | | emitted. llvm-svn: 65092
* The subprogram die may not exist while creating "default" scope.Devang Patel2009-02-181-1/+4
| | | | llvm-svn: 64920
* The debugger sometimes lookup dynamically in the runtime to find ivar info ↵Devang Patel2009-02-171-0/+6
| | | | | | | | of any Objective-C classes. It would be very helpful to debugger if the compiler encodes runtime version number in DWARF. Add support for two additional DWARF attributes to encode Objective-C runtime version number. llvm-svn: 64834
* Emit debug info for bitfields.Devang Patel2009-02-171-1/+18
| | | | llvm-svn: 64815
* Validate file id.Devang Patel2009-02-101-0/+3
| | | | llvm-svn: 64204
* More whitespace fixin'.Bill Wendling2009-02-031-37/+36
| | | | llvm-svn: 63663
* Whitespace and comment changes. No functionality change.Bill Wendling2009-02-031-25/+11
| | | | llvm-svn: 63660
* Do not add redundant arguments in a method definition DIE.Devang Patel2009-02-021-11/+18
| | | | llvm-svn: 63527
* Each input file is encoded as a separate compile unit in LLVM debuggingDevang Patel2009-01-301-34/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | information output. However, many target specific tool chains prefer to encode only one compile unit in an object file. In this situation, the LLVM code generator will include debugging information entities in the compile unit that is marked as main compile unit. The code generator accepts maximum one main compile unit per module. If a module does not contain any main compile unit then the code generator will emit multiple compile units in the output object file. [Part 1] Update DebugInfo APIs to accept optional boolean value while creating DICompileUnit to mark the unit as "main" unit. By defaults all units are considered non-main. Update SourceLevelDebugging.html to document "main" compile unit. Update DebugInfo APIs to not accept and encode separate source file/directory entries while creating various llvm.dbg.* entities. There was a recent, yet to be documented, change to include this additional information so no documentation changes are required here. Update DwarfDebug to handle "main" compile unit. If "main" compile unit is seen then all DIEs are inserted into "main" compile unit. All other compile units are used to find source location for llvm.dbg.* values. If there is not any "main" compile unit then create unique compile unit DIEs for each llvm.dbg.compile_unit. [Part 2] Create separate llvm.dbg.compile_unit for each input file. Mark compile unit create for main_input_filename as "main" compile unit. Use appropriate compile unit, based on source location information collected from the tree node, while creating llvm.dbg.* values using DebugInfo APIs. --- This is Part 1. llvm-svn: 63400
* Remove dead code, again.Devang Patel2009-01-301-14/+0
| | | | llvm-svn: 63358
* Remove dead code.Devang Patel2009-01-301-10/+0
| | | | llvm-svn: 63357
* Add DW_AT_declaration for class methods.Devang Patel2009-01-301-2/+5
| | | | llvm-svn: 63356
* Do not forget to derived type while constructing an array type.Devang Patel2009-01-281-0/+2
| | | | llvm-svn: 63233
* Add type DIE into appropriate context DIE.Devang Patel2009-01-271-3/+17
| | | | llvm-svn: 63154
* Assorted debug info fixes.Devang Patel2009-01-271-17/+19
| | | | | | | | - DW_AT_bit_size is only suitable for bitfields. - Encode source location info for derived types. - Source location and type size info is not useful for subroutine_type (info is included in respective DISubprogram) and array_type. llvm-svn: 63077
* Make the Dwarf macro information section optional; CellSPU's assemblerScott Michel2009-01-261-5/+9
| | | | | | | doesn't support it. The default is set to 'true', so this should not impact any other target backends. llvm-svn: 63058
* Introduce two DWARF attribute extentions DW_AT_APPLE_optimized, ↵Devang Patel2009-01-231-0/+5
| | | | | | | | | | | | DW_AT_APPLE_flags. DW_AT_APPLE_optimized flag is set when a compile_unit is optimized. The debugger takes advantage of this information some way. DW_AT_APPLE_flags encodes command line options when certain env. variable is set. This is used by build engineers to track various gcc command lines used by by a project, irrespective of whether the project used makefile, Xcode or something else. llvm-gcc patch is next. llvm-svn: 62888
* Empty DIType represents void. In this case no need to construct any type DIE.Devang Patel2009-01-231-3/+1
| | | | llvm-svn: 62861
* Code did not follow associated comment. not a good idea.Devang Patel2009-01-231-1/+1
| | | | llvm-svn: 62828
* Set appropriate tag for the composite type.Devang Patel2009-01-231-0/+1
| | | | llvm-svn: 62827
* Encode member accessibility.Devang Patel2009-01-211-1/+5
| | | | llvm-svn: 62638
* Appropriately mark fowrad decls.Devang Patel2009-01-201-11/+8
| | | | llvm-svn: 62625
* Fix struct member's debug info.Devang Patel2009-01-201-7/+24
| | | | llvm-svn: 62610
* Need only one set of debug info versions enum.Devang Patel2009-01-201-4/+4
| | | | llvm-svn: 62602
* Fix global variable's address in a DIE.Devang Patel2009-01-201-1/+1
| | | | llvm-svn: 62596
* Enable debug info for enums.Devang Patel2009-01-201-10/+14
| | | | llvm-svn: 62594
* Enable debug info for composite types.Devang Patel2009-01-201-4/+0
| | | | llvm-svn: 62589
* Do not use DenseMap because the iterator is invalidated while constructing ↵Devang Patel2009-01-201-2/+2
| | | | | | types. After all there was a reason why std::map was used initially! llvm-svn: 62555
* Verify debug info.Devang Patel2009-01-191-1/+18
| | | | llvm-svn: 62545
* Remove tabs.Devang Patel2009-01-171-19/+19
| | | | llvm-svn: 62423
* Refactor codeDevang Patel2009-01-171-118/+73
| | | | llvm-svn: 62421
* Assign argument type to appropriate DIE.Devang Patel2009-01-171-2/+2
| | | | llvm-svn: 62412
* Remove dead code.Devang Patel2009-01-171-14/+2
| | | | llvm-svn: 62410
* Disable composite type debug info for now.Devang Patel2009-01-171-0/+3
| | | | llvm-svn: 62406
* Fix comments.Devang Patel2009-01-161-5/+5
| | | | llvm-svn: 62358
OpenPOWER on IntegriCloud