Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Simplify the debug info code, handle lvalue references and template ↵ | Anders Carlsson | 2009-11-06 | 1 | -0/+4 |
| | | | | | | specializations. llvm-svn: 86277 | ||||
* | Fixup the return type of functions. | Mike Stump | 2009-10-23 | 1 | -1/+1 |
| | | | | llvm-svn: 84922 | ||||
* | Add support to attach debug info to an instruction. | Devang Patel | 2009-10-06 | 1 | -0/+1 |
| | | | | | | This is not yet enabled. llvm-svn: 83399 | ||||
* | Set appropriate context for a global variable while emitting debug info. | Devang Patel | 2009-10-06 | 1 | -0/+3 |
| | | | | llvm-svn: 83352 | ||||
* | Improve debugging information for BlockDeclRefExpr. WIP. Given this | Mike Stump | 2009-09-30 | 1 | -0/+12 |
| | | | | | | | scheme, we can switch the previous scheme over to using this code path. There's a bit of simplifications yet to do as well. llvm-svn: 83138 | ||||
* | Fix an infinite loop arising when trying to generate debug information | John McCall | 2009-09-25 | 1 | -1/+1 |
| | | | | | | for a ObjC class with an ivar of weak self type. llvm-svn: 82745 | ||||
* | Ok, an AssertingVH definitely doesn't work for now because we free our cache ↵ | Daniel Dunbar | 2009-09-19 | 1 | -1/+1 |
| | | | | | | after the optimizer may have hacked on the module. Use a WeakVH instead. llvm-svn: 82324 | ||||
* | Switch CGDebugInfo type cache to using an AssertingVH. | Daniel Dunbar | 2009-09-19 | 1 | -1/+6 |
| | | | | llvm-svn: 82321 | ||||
* | Factor out CGDebugInfo::CreateTypeNode method. | Daniel Dunbar | 2009-09-19 | 1 | -0/+3 |
| | | | | | | - No functionality change. llvm-svn: 82320 | ||||
* | Remove tabs, and whitespace cleanups. | Mike Stump | 2009-09-09 | 1 | -14/+14 |
| | | | | llvm-svn: 81346 | ||||
* | Revert 75648 for now. It is causing test failures. | Devang Patel | 2009-07-14 | 1 | -4/+1 |
| | | | | llvm-svn: 75684 | ||||
* | Use LLVM mangler to get mangled name for debug info entry. | Devang Patel | 2009-07-14 | 1 | -1/+4 |
| | | | | llvm-svn: 75589 | ||||
* | Update debug info generation for ObjCObjectPointer changes. | Daniel Dunbar | 2009-07-14 | 1 | -0/+2 |
| | | | | | | | | | - Previously this would crash on recursive types, and it was also incorrectly stripping off a level of indirection. - I'm not 100% convinced this is all correct, but it should be a monotonic improvment. llvm-svn: 75582 | ||||
* | Revrt PR4228 fix for now. | Devang Patel | 2009-06-26 | 1 | -3/+1 |
| | | | | llvm-svn: 74304 | ||||
* | It is possible that main input file does not have any symbol with debug ↵ | Devang Patel | 2009-06-16 | 1 | -1/+3 |
| | | | | | | | | info. To handle this edge case, always create main compile unit first. This fixes PR 4228. llvm-svn: 73520 | ||||
* | Enhance debug information for block literals. Radar 6867696 | Mike Stump | 2009-05-14 | 1 | -0/+4 |
| | | | | llvm-svn: 71763 | ||||
* | Handle corner case where clang-cc is invoked directly to compile ↵ | Devang Patel | 2009-04-23 | 1 | -0/+1 |
| | | | | | | | | preprocessed source file without -main-file-name. In this case, CDDebugInfo is not able identify correct main source file becase SM.isFromMainFile() returns true for locations from header files as well as locations from main source file. This patch takes conservative approach by not emitting more then one compile unit with isMain bit set. llvm-svn: 69902 | ||||
* | implement debug info for _Complex. | Chris Lattner | 2009-04-23 | 1 | -0/+1 |
| | | | | llvm-svn: 69873 | ||||
* | Appropriately set file name and directory name in debug info compile units. | Devang Patel | 2009-04-17 | 1 | -1/+1 |
| | | | | llvm-svn: 69387 | ||||
* | Add support to emit debug info for objective-c interfaces. | Devang Patel | 2009-02-26 | 1 | -2/+6 |
| | | | | | | (This is not yet used.) llvm-svn: 65573 | ||||
* | reimplement debug info generation in terms of DebugInfo.h instead of | Chris Lattner | 2008-11-10 | 1 | -74/+35 |
| | | | | | | | using MachineModuleInfo. This runs at about the same speed as the old code, but fixes a bunch of bugs and is simpler and shorter. llvm-svn: 58971 | ||||
* | Avoid redundant cast<>s / simplify type dispatch. | Daniel Dunbar | 2008-11-08 | 1 | -6/+6 |
| | | | | llvm-svn: 58892 | ||||
* | privatize some methods. | Chris Lattner | 2008-11-03 | 1 | -0/+3 |
| | | | | llvm-svn: 58602 | ||||
* | Move IRBuilder type definition to common file. | Daniel Dunbar | 2008-11-01 | 1 | -8/+7 |
| | | | | | | - No functionality change. llvm-svn: 58546 | ||||
* | Quick fix for PR2950, infinite loop generating debug info for | Daniel Dunbar | 2008-10-31 | 1 | -4/+6 |
| | | | | | | | recursive types. - Style will be clean up in further patches. llvm-svn: 58490 | ||||
* | Formatting tweaks. | Daniel Dunbar | 2008-10-31 | 1 | -9/+9 |
| | | | | | | - No functionality change. llvm-svn: 58488 | ||||
* | Map compilation units using FileEntry pointers instead of | Daniel Dunbar | 2008-10-24 | 1 | -1/+1 |
| | | | | | | | | | FileIDs. This seems better conceptually and lets the SourceManager handle details of mapping the location to a file ID. - In practice, fixes an assert because this code wasn't using getPhysicalLoc. llvm-svn: 58055 | ||||
* | Debug info bug fix, function start wasn't getting generated correctly | Daniel Dunbar | 2008-10-18 | 1 | -3/+3 |
| | | | | | | for Obj-C methods. llvm-svn: 57769 | ||||
* | Change CGDebugInfo::setLocation to just ignore invalid locations. This | Daniel Dunbar | 2008-10-17 | 1 | -0/+2 |
| | | | | | | | | | simplifies clients. Also, add assert that RegionStack is empty when the CGDebugInfo is destroyed. llvm-svn: 57684 | ||||
* | Update for IRBuilder template change (update LLVM!) | Daniel Dunbar | 2008-08-11 | 1 | -6/+8 |
| | | | | llvm-svn: 54642 | ||||
* | update to make IRBuilder API change. | Chris Lattner | 2008-08-08 | 1 | -6/+6 |
| | | | | llvm-svn: 54548 | ||||
* | Generate debug descriptors for array types while generating the debug info. | Sanjiv Gupta | 2008-06-09 | 1 | -0/+4 |
| | | | | llvm-svn: 52140 | ||||
* | Create debug type descriptors for aggregate/enum types. | Sanjiv Gupta | 2008-06-07 | 1 | -0/+8 |
| | | | | llvm-svn: 52070 | ||||
* | Emit debug information for global and static variables when -g is specified. | Sanjiv Gupta | 2008-06-05 | 1 | -0/+7 |
| | | | | llvm-svn: 51993 | ||||
* | Emit parameter and local variable debug information with -g. | Sanjiv Gupta | 2008-05-30 | 1 | -1/+8 |
| | | | | llvm-svn: 51765 | ||||
* | A couple minor fixes to make debug info usable for arbitrary code: don't | Eli Friedman | 2008-05-29 | 1 | -1/+1 |
| | | | | | | | | emit incomplete types, because they crash llc, and always use the logical location as the current location so we don't crash doing invalid queries on CurLoc. llvm-svn: 51675 | ||||
* | Generate subprogram debug info with -g. | Sanjiv Gupta | 2008-05-25 | 1 | -19/+53 |
| | | | | | | Also take care of freeing memory at the right places. llvm-svn: 51553 | ||||
* | Make debugging information usable. This is barebones, but it makes -g | Eli Friedman | 2008-05-22 | 1 | -13/+16 |
| | | | | | | | | | | | | | | actually work (instead of crashing llc), and there's enough info emitted to get line number information in gdb. This should hopefully be helpful for debugging non-working programs. I got rid of the begin/endregion calls because the implementation wasn't working; someone who knows the debugging info a bit better might try to add it. I really have no clue how a compiler is supposed to emit them. This commit shouldn't have any effect without -g. llvm-svn: 51404 | ||||
* | Added -g command line options to clang for generating source level debug ↵ | Sanjiv Gupta | 2008-05-08 | 1 | -0/+84 |
information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo. llvm-svn: 50848 |