summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix FIXME and surrounding comment.Devang Patel2010-02-011-4/+1
| | | | llvm-svn: 95023
* Use appropriate context descriptor in RecordDecl's debug info.Devang Patel2010-02-011-3/+9
| | | | llvm-svn: 95016
* Do not use clang type name to name a local variable, e.g. Decl.Devang Patel2010-02-011-44/+44
| | | | llvm-svn: 95010
* Do not use clang type name to name a local variable, e.g. Decl.Devang Patel2010-02-011-29/+25
| | | | llvm-svn: 95009
* Use DeclContext as getContextDescriptor() argument.Devang Patel2010-02-011-18/+27
| | | | llvm-svn: 95008
* Emit debug info for namespaces.Devang Patel2010-02-011-0/+25
| | | | llvm-svn: 94991
* Use appropriate context for typedefs. Devang Patel2010-01-291-7/+5
| | | | llvm-svn: 94849
* Maintain a map of regions (lexical scopes) and use it to find context for a ↵Devang Patel2010-01-291-10/+8
| | | | | | global variable. llvm-svn: 94817
* s/CGDebugInfo::getContext/CGDebugInfo::getContextDescriptor/g to avoid ↵Devang Patel2010-01-281-5/+5
| | | | | | confusion. llvm-svn: 94760
* Fix indentation.Devang Patel2010-01-281-30/+30
| | | | llvm-svn: 94758
* Static methods do not need "this" pointer argument.Devang Patel2010-01-281-0/+5
| | | | llvm-svn: 94756
* Emit base classes info first, as expected by the debugger.Devang Patel2010-01-281-3/+3
| | | | llvm-svn: 94755
* s/FunctionNames/DebugInfoNames/gDevang Patel2010-01-281-2/+2
| | | | llvm-svn: 94753
* Emit vtable info.Devang Patel2010-01-281-1/+70
| | | | llvm-svn: 94751
* While emitting debugging infor for a C++ class, identify the holder of ↵Devang Patel2010-01-281-1/+11
| | | | | | class's vtable, if any. llvm-svn: 94712
* Include "this" pointer argument while emitting debug info for a C++ method.Devang Patel2010-01-281-1/+39
| | | | llvm-svn: 94710
* Change the return type of ASTContext::getDeclAlignInBytes() to CharUnits and,Ken Dyck2010-01-271-8/+10
| | | | | | | now that the "InBytes" part of the name is implied by the return type, rename it to getDeclAlign(). llvm-svn: 94681
* Fix another debug info crash with virtual bases.Anders Carlsson2010-01-261-4/+11
| | | | llvm-svn: 94520
* Fix the test I broke, and also fix a crash when declaring a virtual ↵Anders Carlsson2010-01-261-21/+25
| | | | | | destructor. Add debug info support for pure virtual member functions. llvm-svn: 94519
* Factor creating the DISubprogram for a member function out into a separate ↵Anders Carlsson2010-01-261-51/+63
| | | | | | function. llvm-svn: 94513
* Simplify CGDebugInfo::CollectCXXMemberFunctions a little. More to come.Anders Carlsson2010-01-261-6/+6
| | | | llvm-svn: 94511
* First cut at emitting inheritance info.Devang Patel2010-01-251-1/+37
| | | | llvm-svn: 94473
* Emit debug info for virtual functions.Devang Patel2010-01-251-2/+12
| | | | llvm-svn: 94467
* fix rdar://7556129 a crash in blocks debug info codegen.Chris Lattner2010-01-251-2/+3
| | | | llvm-svn: 94402
* simplify code.Chris Lattner2010-01-251-19/+10
| | | | llvm-svn: 94401
* No need to terminate this buffer.Benjamin Kramer2010-01-231-4/+3
| | | | llvm-svn: 94313
* A Decl->getName() is not unique. However, the debug info descriptors Devang Patel2010-01-201-1/+8
| | | | | | | | | | are uniqued. The debug info descriptor describing record's context is necessary to keep two Decl's descriptor unique if their name match. There is more work to do to create descriptors for DeclContext. As a temp. step use type's name in FwdDecl. llvm-svn: 94050
* Emit human readable names for operators.Devang Patel2010-01-191-4/+3
| | | | llvm-svn: 93837
* First cut at emitting debugging information for C++ member functions.Devang Patel2010-01-191-2/+71
| | | | | | There is lot more work to do in this area. llvm-svn: 93836
* Use llvm::Function name as the linkage name, but strip off leading '01' from ↵Devang Patel2010-01-191-0/+2
| | | | | | display name. llvm-svn: 93822
* Refactor.Devang Patel2010-01-191-49/+60
| | | | llvm-svn: 93814
* llvm::Function name is the linkage name. If it has a '01' as a prefix then ↵Devang Patel2010-01-181-3/+0
| | | | | | probably there is a reason. llvm-svn: 93808
* Fix crash generating debug info for constructor for anonymous struct.Eli Friedman2010-01-161-1/+1
| | | | llvm-svn: 93601
* Emit linkage name even if it matches regular name. The code generator uses ↵Devang Patel2010-01-141-3/+3
| | | | | | linkage name to find subprogram entry for the current function. llvm-svn: 93461
* Add comment.Devang Patel2010-01-141-0/+3
| | | | llvm-svn: 93434
* Because CurLoc is the current source location as far as CGDebugInfo is ↵Devang Patel2010-01-141-1/+0
| | | | | | concerned. It is expected that this is set (usually left bracket location of function body compound statement) before EmitfunctionStart() is used. llvm-svn: 93389
* Emit human readable names for c/c++ functions. Avoid emitting linkage name ↵Devang Patel2010-01-141-7/+38
| | | | | | if it matches regular name. llvm-svn: 93383
* Roll out ASTContext::getTypeSizeInChars(), replacing instances ofKen Dyck2010-01-111-6/+8
| | | | | | | | | | "ASTContext::getTypeSize() / 8". Replace [u]int64_t variables with CharUnits ones as appropriate. Also rename RawType, fromRaw(), and getRaw() in CharUnits to QuantityType, fromQuantity(), and getQuantity() for clarity. llvm-svn: 93153
* Get rid of FixedWidthIntType, as suggested by Chris and Eli.Anders Carlsson2009-12-291-5/+4
| | | | llvm-svn: 92246
* adjust for llvm api changes.Chris Lattner2009-12-281-10/+2
| | | | llvm-svn: 92236
* this form of SetDebugLocation is about to go away, add some #includes thatChris Lattner2009-12-281-4/+13
| | | | | | are about to not come in implicitly. llvm-svn: 92228
* Improve on my previous fix for debug information. Rather thanDouglas Gregor2009-12-211-51/+42
| | | | | | | | | recursing in CGDebugInfo::CreateTypeNode, teach CanonicalizeTypeForDebugInfo---now called UnwrapTypeForDebugInfo---to keep unwrapping the type until we hit something that can be represented by debug information. Thanks to Anders for pointing this out! llvm-svn: 91840
* Teach debug info generation to handle TemplateSpecializationType,Douglas Gregor2009-12-211-3/+50
| | | | | | | | ElaboratedType, QualifiedNameType, and SubstTemplateTypeParmType type nodes. Also, produce an "unsupported" diagnostic for C++0x type nodes and "typeof" nodes, rather than asserting nondescriptly. llvm-svn: 91837
* Add -dwarf-debug-flags, which provides a way to embed the cc1 level options usedDaniel Dunbar2009-12-181-7/+3
| | | | | | | | to compile a translation unit into the debug info for that file. - Used by parts of Darwin build process to check compiler flags, etc. - <rdar://problem/7256886> clang does not emit AT_APPLE_flags llvm-svn: 91661
* Use StringRef in CGDebugInfo::EmitFunctionStart.Benjamin Kramer2009-12-081-3/+3
| | | | llvm-svn: 90856
* Use Path.makeAbsolute() and make a constant std::string a const char*.Benjamin Kramer2009-12-081-7/+3
| | | | llvm-svn: 90851
* Remove several .c_str() to be forward-compatible with StringRef.Jeffrey Yasskin2009-12-081-2/+2
| | | | llvm-svn: 90822
* Add rudimentary support for member pointers to CGDebugInfo.Anders Carlsson2009-12-061-124/+167
| | | | llvm-svn: 90711
* Move MainFileName option variable into CodeGenOptions instead of LangOptions.Daniel Dunbar2009-11-291-3/+3
| | | | llvm-svn: 90051
* Use StringRef (again) in DebugInfo interface.Devang Patel2009-11-251-18/+18
| | | | llvm-svn: 89867
OpenPOWER on IntegriCloud