aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/debug-info-enum-class.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-10-20DebugInfo: pass alignment value only if it was forcedVictor Leschuk1-4/+4
Preparation to implement DW_AT_alignment support: - We pass non-zero align value to DIBuilder only when alignment was forced - Modify tests to match this change Differential Revision: https://reviews.llvm.org/D24426 llvm-svn: 284679
2016-04-23DebugInfo: Adapt to loss of DITypeRef in LLVM r267296Duncan P. N. Exon Smith1-2/+2
LLVM stopped using MDString-based type references, and DIBuilder no longer fills 'retainedTypes:' with every DICompositeType that has an 'identifier:' field. There are just minor changes to keep the same behaviour in CFE. Leaving 'retainedTypes:' unfilled has a dramatic impact on the output order of the IR though. There are a huge number of testcase changes, which were unfortunately not really scriptable. llvm-svn: 267297
2016-03-25Debug Info: Add a testcase for the bug introduced by r259975.Adrian Prantl1-0/+6
In r259975 we rauw'ed the scope of enum declarations without taking into account that DIBuilder strips out scope references that point to the DICompileUnit to facilitate type uniquing. This testcase guards against making the same mistake again. <rdar://problem/25078246> llvm-svn: 264366
2015-10-08Stop messing with the 'g' group of options in CompilerInvocation.Douglas Katzman1-1/+1
With this change, most 'g' options are rejected by CompilerInvocation. They remain only as Driver options. The new way to request debug info from cc1 is with "-debug-info-kind={line-tables-only|limited|standalone}" and "-dwarf-version={2|3|4}". In the absence of a command-line option to specify Dwarf version, the Toolchain decides it, rather than placing Toolchain-specific logic in CompilerInvocation. Also fix a bug in the Windows compatibility argument parsing in which the "rightmost argument wins" principle failed. Differential Revision: http://reviews.llvm.org/D13221 llvm-svn: 249655
2015-04-29DebugInfo: Metadata constructs now start with DI*Duncan P. N. Exon Smith1-15/+15
LLVM r236120 renamed debug info IR constructs to use a `DI` prefix, now that the `DIDescriptor` hierarchy has been gone for about a week. This commit was generated using the rename-md-di-nodes.sh upgrade script attached to PR23080, followed by running clang-format-diff.py on the `lib/` portion of the patch. llvm-svn: 236121
2015-03-03DebugInfo: Move new hierarchy into place (clang)Duncan P. N. Exon Smith1-14/+50
Update testcases for LLVM change in r231082 to use the new debug info hierarchy. llvm-svn: 231083
2014-12-15IR: Make metadata typeless in assembly, clang sideDuncan P. N. Exon Smith1-6/+6
Match LLVM changes from r224257. llvm-svn: 224259
2014-10-03Revert "Revert "DI: LLVM schema change: fold constants into string""Duncan P. N. Exon Smith1-5/+5
This reverts commit r218917, effectively reapplying r218913. Original commit message follows. -- Update debug info testcases for an LLVM metadata schema change to fold metadata constant operands into a single `MDString`. Part of PR17891. llvm-svn: 219011
2014-10-02Revert "DI: LLVM schema change: fold constants into string"Duncan P. N. Exon Smith1-5/+5
This reverts commit r218913 while I investigate some bots. llvm-svn: 218917
2014-10-02DI: LLVM schema change: fold constants into stringDuncan P. N. Exon Smith1-5/+5
Update debug info testcases for an LLVM metadata schema change to fold metadata constant operands into a single `MDString`. Part of PR17891. llvm-svn: 218913
2014-05-06Reapply: DebugInfo: Emit the definition of enums when the definition ↵David Blaikie1-1/+51
preceeds the declaration and initial use. Reverting r208106 to reapply r208065 with a fix for the regression. The issue was that the enum tried to be built even if the declaration hadn't been constructed for debug info - presenting problems for enum templates and typedefs of enums with names for linkage purposes. Original commit message: This regressed a little further 208055 though it was already a little broken. While the requiresCompleteType optimization should be implemented here. Future (possibly near future) work. llvm-svn: 208114
2014-05-06Revert "DebugInfo: Emit the definition of enums when the definition preceeds ↵David Blaikie1-42/+1
the declaration and initial use." This is breaking the compiler-rt build. Reverting while I investigate/fix. This reverts commit r208065. llvm-svn: 208106
2014-05-06DebugInfo: Emit the definition of enums when the definition preceeds the ↵David Blaikie1-1/+42
declaration and initial use. This regressed a little further 208055 though it was already a little broken. While the requiresCompleteType optimization should be implemented here. Future (possibly near future) work. llvm-svn: 208065
2013-06-21DebugInfo: handle the DI asm printing change to reword '[fwd]' as '[decl]' ↵David Blaikie1-4/+4
and add '[def]' for non-decl tag types This is to make test cases looking for definitions more legible by making the definition explicit rather than just the absence of '[fwd]'. This allowed the debug-info-record tests to be rephrased - and in the interests of reducing the number of individual test cases/invocations we have, I merged them into one file, separated them with namespaces (& then moved them to C++ because namespaces are great). If they need to remain 'C' only tests, they can be moved back. (I didn't group them with 'debug-info-class.cpp' because these tests only apply to -fno-limit-debug-info) I removed the pieces of code that would cause these tests to pass under -flimit-debug-info to ensure the tests remain relevant to their fixes should we ever improve -flimit-debug-info to catch that kind of code. This commit is version locked with the corresponding change to DebugInfo.h in LLVM. Except some transient buildbot fallout. llvm-svn: 184524
2013-03-19Simplify/generalize some debug info test casesDavid Blaikie1-4/+4
Mostly, try to depend on the annotation comments more so these tests are more legible, brief, and agnostic to schema changes in the future (sure, they're not agnostic to changes to the comment annotations but since they're easier to read they should be easier to update if that happens). llvm-svn: 177457
2013-02-02Generalize DebugInfo tests by avoiding explicit metadata numbersDavid Blaikie1-4/+4
This addresses several (not all) debug info tests that use explicit metadata numbers. Wherever the same number appeared more than once in a test I used a named match to ensure the same number appeared in all those cases (this may still be overly constraining test cases as they may not have actually cared about that relationship). For one-off numbers I just replaced them with an unnamed regex. This may underconstrain poorly written test cases that were interested in checking that certain metadata nodes were related but didn't actually match on all the related nodes numbers. llvm-svn: 174247
2012-10-05Make sure to generate the right kind of MDNode for enum forward declarations.Eli Friedman1-1/+15
PR14029, clang part. llvm-svn: 165289
2012-06-01Support C++11 enum forward declarations.Eric Christopher1-0/+3
Part of rdar://11570854 llvm-svn: 157787
2012-05-23Emit C++11 enum class information if it exists.Eric Christopher1-0/+12
Part of rdar://11496790 llvm-svn: 157304