summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Do not emit linkage name for global variables. It confuses gdb, because it ↵Devang Patel2009-11-071-1/+3
| | | | | | picks up AT_MIPS_linkage_name and ignores AT_name. llvm-svn: 86308
* Simplify the debug info code, handle lvalue references and template ↵Anders Carlsson2009-11-061-13/+31
| | | | | | specializations. llvm-svn: 86277
* Handle QualifiedNameType and SubstTemplateTypeParmType types in ↵Anders Carlsson2009-11-061-0/+11
| | | | | | CGDebugInfo::CreateTypeNode. llvm-svn: 86274
* Don't assert when trying to generate debug info for vector types. This needs ↵Anders Carlsson2009-11-061-0/+4
| | | | | | to be fixed eventually... llvm-svn: 86268
* Instead of returning a null DIType for unhandled types, assert.Anders Carlsson2009-11-061-9/+1
| | | | llvm-svn: 86254
* Enable debug info for global variables at -O1+Devang Patel2009-11-051-7/+0
| | | | llvm-svn: 86156
* Fixup the return type of functions.Mike Stump2009-10-231-2/+2
| | | | llvm-svn: 84922
* Do not eagerly cache DITypes because it allows real struct type to be ↵Devang Patel2009-10-201-31/+58
| | | | | | shadowed by forward declared struct type. llvm-svn: 84659
* Encode global variable name in debug info.Devang Patel2009-10-201-2/+2
| | | | llvm-svn: 84653
* Remove the ConstantArrayType subtypes. This information is preserved in theJohn McCall2009-10-161-2/+0
| | | | | | | | | | TypeLoc records for declarations; it should not be necessary to represent it directly in the type system. Please complain if you were using these classes and feel you can't replicate previous functionality using the TypeLoc API. llvm-svn: 84222
* Few targets like PIC16 mangle the names of global variables, so retrieve the ↵Sanjiv Gupta2009-10-141-1/+1
| | | | | | | | name from Var itself rather than the decl for DebugInfo metadata. llvm-svn: 84102
* Encode long double.Devang Patel2009-10-121-0/+1
| | | | llvm-svn: 83912
* Allow customization for the producer information in the debug output.Mike Stump2009-10-091-1/+5
| | | | llvm-svn: 83659
* InsertSubprogramStart if ATTACH_DEBUG_INFO_TO_AN_INSN is not defined.Devang Patel2009-10-061-1/+3
| | | | llvm-svn: 83419
* Add support to attach debug info to an instruction.Devang Patel2009-10-061-1/+16
| | | | | | This is not yet enabled. llvm-svn: 83399
* Set appropriate context for a global variable while emitting debug info.Devang Patel2009-10-061-1/+18
| | | | llvm-svn: 83352
* More magic pixie dust.Mike Stump2009-10-021-3/+3
| | | | llvm-svn: 83232
* Fix up debug information for block pointers a bit more.Mike Stump2009-10-021-1/+3
| | | | llvm-svn: 83231
* Implement a FIXME. This improves codegen just a tad.Mike Stump2009-10-011-2/+2
| | | | llvm-svn: 83221
* Improve debugging information for BlockDeclRefExpr. WIP. Given thisMike Stump2009-09-301-0/+202
| | | | | | | 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 informationJohn McCall2009-09-251-16/+23
| | | | | | for a ObjC class with an ivar of weak self type. llvm-svn: 82745
* Refactor the representation of qualifiers to bring ExtQualType out of theJohn McCall2009-09-241-1/+0
| | | | | | | | Type hierarchy. Demote 'volatile' to extended-qualifier status. Audit our use of qualifiers and fix a few places that weren't dealing with qualifiers quite right; many more remain. llvm-svn: 82705
* Fix some typos. WIP. Large alignments don't work yet.Mike Stump2009-09-221-3/+3
| | | | llvm-svn: 82512
* Improve debug info generation for __block variables.Mike Stump2009-09-221-1/+133
| | | | llvm-svn: 82508
* Ok, an AssertingVH definitely doesn't work for now because we free our cache ↵Daniel Dunbar2009-09-191-3/+6
| | | | | | 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 Dunbar2009-09-191-18/+17
| | | | llvm-svn: 82321
* Factor out CGDebugInfo::CreateTypeNode method.Daniel Dunbar2009-09-191-24/+35
| | | | | | - No functionality change. llvm-svn: 82320
* Be sure to use the correct version instead of inventing the wrong one.Mike Stump2009-09-151-1/+2
| | | | llvm-svn: 81924
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-091-85/+85
| | | | llvm-svn: 81346
* Basic support for representing elaborated type specifiersJohn McCall2009-09-051-0/+3
| | | | | | | | | | | | | | | directly in the AST. The current thinking is to create these only in C++ mode for efficiency. But for now, they're not being created at all; patch to follow. This will let us do things like verify that tags match during template instantation, as well as signal that an elaborated type specifier was used for clients that actually care. Optimally, the TypeLoc hierarchy should be adjusted to carry tag location information as well. llvm-svn: 81057
* Rename DIBlock as DILexicalBlock.Devang Patel2009-08-311-1/+1
| | | | llvm-svn: 80634
* Introduce LocInfoType which is a Sema-specific implementation detail.Argyrios Kyrtzidis2009-08-191-1/+1
| | | | | | | | This is a Type subclass that can hold a DeclaratorInfo* when we have type source info coming out of a declarator that we want to preserve. This is used only at the "border" of Parser/Sema for passing/getting QualTypes, it does not participate in the type system semantics in any way. llvm-svn: 79394
* Do now overflow while calulating upper bound for zero sized array.Devang Patel2009-08-141-2/+3
| | | | llvm-svn: 79043
* Use DICompositeType->replaceAllUsesWith()Devang Patel2009-07-271-4/+3
| | | | llvm-svn: 77228
* Use DICompositeType->replaceAllUsesWith().Devang Patel2009-07-221-4/+3
| | | | | | This requires llvm rev. 76769 or higher. llvm-svn: 76770
* Revert r75641.Anders Carlsson2009-07-181-1/+1
| | | | llvm-svn: 76327
* Remove ObjCQualifiedInterfaceType:-)Steve Naroff2009-07-181-1/+0
| | | | llvm-svn: 76321
* Revert 75648 for now. It is causing test failures.Devang Patel2009-07-141-21/+6
| | | | llvm-svn: 75684
* [llvm up] adjust to match mainline.Chris Lattner2009-07-141-3/+4
| | | | llvm-svn: 75647
* Rename RecordLayout.h to ASTRecordLayout.hAnders Carlsson2009-07-141-1/+1
| | | | llvm-svn: 75641
* Revert r75614 which depend on r75610 (for LLVM), which was reverted.Daniel Dunbar2009-07-141-4/+3
| | | | | | | --- Reverse-merging r75614 into '.': U lib/CodeGen/CGDebugInfo.cpp llvm-svn: 75639
* use new name for method.Chris Lattner2009-07-141-3/+4
| | | | llvm-svn: 75614
* Use LLVM mangler to get mangled name for debug info entry.Devang Patel2009-07-141-6/+20
| | | | llvm-svn: 75589
* Update debug info generation for ObjCObjectPointer changes.Daniel Dunbar2009-07-141-5/+15
| | | | | | | | | - 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
* Update debug info type cache after fwd decl is replaced by real decl.Devang Patel2009-07-131-2/+6
| | | | llvm-svn: 75473
* Fix comment.Devang Patel2009-07-131-1/+1
| | | | llvm-svn: 75471
* This patch includes a conceptually simple, but very intrusive/pervasive change. Steve Naroff2009-07-101-2/+4
| | | | | | | | | | | | The idea is to segregate Objective-C "object" pointers from general C pointers (utilizing the recently added ObjCObjectPointerType). The fun starts in Sema::GetTypeForDeclarator(), where "SomeInterface *" is now represented by a single AST node (rather than a PointerType whose Pointee is an ObjCInterfaceType). Since a significant amount of code assumed ObjC object pointers where based on C pointers/structs, this patch is very tedious. It should also explain why it is hard to accomplish this in smaller, self-contained patches. This patch does most of the "heavy lifting" related to moving from PointerType->ObjCObjectPointerType. It doesn't include all potential "cleanups". The good news is additional cleanups can be done later (some are noted in the code). This patch is so large that I didn't want to include any changes that are purely aesthetic. By making the ObjC types truly built-in, they are much easier to work with (and require fewer "hacks"). For example, there is no need for ASTContext::isObjCIdStructType() or ASTContext::isObjCClassStructType()! We believe this change (and the follow-up cleanups) will pay dividends over time. Given the amount of code change, I do expect some fallout from this change (though it does pass all of the clang tests). If you notice any problems, please let us know asap! Thanks. llvm-svn: 75314
* Fix a problem that Eli noticed, and that Doug helped me fix.Anders Carlsson2009-07-101-2/+2
| | | | llvm-svn: 75265
* Keep track of the Expr used to describe the size of an array type,Douglas Gregor2009-07-061-0/+2
| | | | | | from Enea Zaffanella! llvm-svn: 74831
* De-ASTContext-ify DeclContext.Argyrios Kyrtzidis2009-06-301-4/+3
| | | | | | | Remove ASTContext parameter from DeclContext's methods. This change cascaded down to other Decl's methods and changes to call sites started "escalating". Timings using pre-tokenized "cocoa.h" showed only a ~1% increase in time run between and after this commit. llvm-svn: 74506
OpenPOWER on IntegriCloud