summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DebugInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add explicit constructors. Patch by Renato Golin.Devang Patel2010-08-021-0/+15
| | | | llvm-svn: 110072
* Make NamedMDNode not be a subclass of Value, and simplify the interfaceDan Gohman2010-07-211-5/+5
| | | | | | for creating and populating NamedMDNodes. llvm-svn: 109061
* tidy up.Jim Grosbach2010-07-211-26/+27
| | | | llvm-svn: 109038
* Disallow null as a named metadata operand.Dan Gohman2010-07-211-4/+2
| | | | | | | | | | | Make MDNode::destroy private. Fix the one thing that used MDNode::destroy, outside of MDNode itself. One should never delete or destroy an MDNode explicitly. MDNodes implicitly go away when there are no references to them (implementation details aside). llvm-svn: 109028
* Correct line info for declarations/definitions. Radar 8063111.Stuart Hastings2010-07-191-3/+8
| | | | llvm-svn: 108784
* Reverting r107918 and r107919. Radar 8063111.Stuart Hastings2010-07-081-8/+3
| | | | llvm-svn: 107930
* Fix decl/def debug info for template functions. Radar 8063111.Stuart Hastings2010-07-081-3/+8
| | | | llvm-svn: 107919
* Use named MDNode, llvm.dbg.sp, to collect subprogram info. This will be used ↵Devang Patel2010-06-281-11/+23
| | | | | | to emit local variable's debug info of deleted functions. llvm-svn: 106989
* Do not forget last element, function, while creating Subprogram definition ↵Devang Patel2010-06-271-1/+2
| | | | | | MDNode from subprogram declare MDNode. llvm-svn: 106985
* Use single interface, using twine, to get named metadata.Devang Patel2010-06-221-2/+1
| | | | | | getNamedMetadata(). llvm-svn: 106518
* Do not rely on Twine temporaries to survive.Devang Patel2010-06-221-4/+4
| | | | llvm-svn: 106515
* Do not directly use function names to construct new name for named metadata.Devang Patel2010-06-211-1/+8
| | | | | | "llvm.dbg.lv.~A" is not a valid name. llvm-svn: 106438
* Check function pointer first, before comparing function names.Devang Patel2010-06-161-0/+2
| | | | llvm-svn: 106088
* Use separate named MDNode to hold each function's local variable info.Devang Patel2010-06-161-2/+6
| | | | | | This speeds up local variable handling in DwarfDebug. llvm-svn: 106075
* Support for nested functions/classes in debug output. (Again.) Radar 7424645.Stuart Hastings2010-06-111-3/+14
| | | | llvm-svn: 105828
* Delete duplicate function.Stuart Hastings2010-06-111-12/+0
| | | | llvm-svn: 105827
* Revert 105492 & 105493 due to a testcase regression. Radar 7424645.Stuart Hastings2010-06-051-18/+18
| | | | llvm-svn: 105511
* Support for nested functions/classes in debug output. Radar 7424645.Stuart Hastings2010-06-041-18/+18
| | | | llvm-svn: 105492
* Revert 104841, 104842, 104876 due to buildbot failures. Radar 7424645.Stuart Hastings2010-05-281-0/+12
| | | | llvm-svn: 104953
* Support for nested functions/classes in debug output. Radar 7424645.Stuart Hastings2010-05-271-12/+0
| | | | llvm-svn: 104841
* Rename variable. add comment.Devang Patel2010-05-201-2/+5
| | | | llvm-svn: 104274
* Add support to preserve type info for the variables that are removed by the ↵Devang Patel2010-05-141-2/+7
| | | | | | optimizer. llvm-svn: 103798
* Fix whitespace in debug output to be consistent.Dan Gohman2010-05-101-1/+1
| | | | llvm-svn: 103422
* Remove DIGlobal.Devang Patel2010-05-071-20/+8
| | | | llvm-svn: 103325
* Add DINameSpace::Verify().Devang Patel2010-05-071-0/+11
| | | | llvm-svn: 103318
* Verify variable directly.Devang Patel2010-05-071-36/+0
| | | | llvm-svn: 103305
* Verify compile unit also.Devang Patel2010-05-071-0/+3
| | | | llvm-svn: 103300
* Wrap const MDNode * inside DIDescriptor.Devang Patel2010-05-071-10/+12
| | | | llvm-svn: 103295
* Use overloaded operators instead of DIDescriptor::getNode()Devang Patel2010-05-071-1/+1
| | | | llvm-svn: 103276
* Avoid DIDescriptor::getNode(). Use overloaded operators instead.Devang Patel2010-05-071-83/+83
| | | | llvm-svn: 103272
* Add some words to this output to indicate what the numbers mean.Dan Gohman2010-05-071-4/+4
| | | | llvm-svn: 103264
* Fix the new print functions to call print instead of dump.Dan Gohman2010-05-071-11/+11
| | | | llvm-svn: 103261
* Convert the DebugInfo classes dump() methods into print(raw_ostream &)Dan Gohman2010-05-071-52/+102
| | | | | | methods, and add dump functions implemented in terms of the print. llvm-svn: 103254
* Do not ignore debug loc attached with llvm.dbg.declare while collecting ↵Devang Patel2010-05-041-3/+1
| | | | | | debug info used by a module. llvm-svn: 102995
* Attach AT_APPLE_optimized attribute to optimized function's debug info.Devang Patel2010-04-301-5/+15
| | | | llvm-svn: 102743
* Refactor.Devang Patel2010-04-291-0/+11
| | | | llvm-svn: 102661
* DebugInfoFinder::processModule was foiling my plot byChris Lattner2010-04-021-5/+20
| | | | | | | | | materializing an MDNode for every debugloc. don't do that! :) "clang -g -S t.c" really no longer makes mdnodes for location tuples now. llvm-svn: 100224
* Switch the code generator (except the JIT) onto the new DebugLocChris Lattner2010-04-021-18/+0
| | | | | | | | | | | | | | | 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
* microoptimize this hot method, also making it more Chris Lattner2010-03-311-3/+2
| | | | | | consistent with other similar ones. llvm-svn: 99997
* Start using DIFile. See updated SourceLevelDebugging.html for more information.Devang Patel2010-03-091-24/+25
| | | | | | | | | This patch updates LLVMDebugVersion to 8. Debug info descriptors encoded using LLVMDebugVersion 7 is supported. Corresponding llvmgcc and clang FE commits are required. llvm-svn: 98020
* Introduce DIFile. This will be used to represent header files and source ↵Devang Patel2010-03-081-0/+23
| | | | | | file(s) in debug info. llvm-svn: 97994
* Derive DIType from DIScope. This simplifies getContext() where for members ↵Devang Patel2010-03-081-1/+9
| | | | | | the context is a type. This also eliminates need of CompileUnitMaps maintained by dwarf writer. llvm-svn: 97990
* Remove DbgNode checks in constructor. Debug descriptors are intended to be ↵Devang Patel2010-03-081-9/+0
| | | | | | light weight wrappers. llvm-svn: 97988
* Avoid using DIDescriptor.isNull(). Devang Patel2010-03-081-81/+64
| | | | | | This is a first step towards eliminating checks in Descriptor constructors. llvm-svn: 97975
* Revert r97947.Devang Patel2010-03-081-64/+81
| | | | llvm-svn: 97963
* Avoid using DIDescriptor.isNull().Devang Patel2010-03-081-81/+64
| | | | | | This is a first step towards eliminating unncessary constructor checks in light weight DIDescriptor wrappers. llvm-svn: 97947
* Use line and column number to distinguish two lexical blocks at the same level.Devang Patel2010-02-161-3/+6
| | | | llvm-svn: 96395
* Set DW_AT_artificial only if argument is marked as artificial.Devang Patel2010-02-061-0/+23
| | | | llvm-svn: 95461
* Provide interface to identifiy artificial methods.Devang Patel2010-02-031-5/+8
| | | | llvm-svn: 95240
* Before inserting llvm.dbg.declare intrinsic at the end of a basic block, ↵Devang Patel2010-01-291-2/+7
| | | | | | | | check whether the basic block has a terminator or not. This API is used by clang and the test case is test/CodeGen/debug-info-crash.c in clang module. llvm-svn: 94820
OpenPOWER on IntegriCloud