summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/dwarf-version.c
Commit message (Collapse)AuthorAgeFilesLines
* DebugInfo: Flag Dwarf Version metadata for merging during LTODavid Blaikie2019-11-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | When the Dwarf Version metadata was initially added (r184276) there was no support for Module::Max - though the comment suggested that was the desired behavior. The original behavior was Module::Warn which would warn and then pick whichever version came first - which is pretty arbitrary/luck-based if the consumer has some need for one version or the other. Now that the functionality's been added (r303590) this change updates the implementation to match the desired goal. The general logic here is - if you compile /some/ of your program with a more recent DWARF version, you must have a consumer that can handle it, so might as well use it for /everything/. The only place where this might fall down is if you have a need to use an old tool (supporting only the older DWARF version) for some subset of your program. In which case now it'll all be the higher version. That seems pretty narrow (& the inverse could happen too - you specifically /need/ the higher DWARF version for some extra expressivity, etc, in some part of the program)
* DebugInfo: Let -gdwarf use the toolchain default DWARF version, instead of ↵David Blaikie2019-11-011-0/+1
| | | | hardcoded/aliased to -gdwarf-4
* [codeview] Make "clang -g" emit codeview by default when targetting MSVCReid Kleckner2018-11-141-4/+20
| | | | | | | | | | | | | | | | | | | | Summary: If you're using the Microsoft ABI, chances are that you want PDBs and codeview debug info. Currently, everyone has to remember to specific -gcodeview by default, when it would be nice if the standard -g option did the right thing by default. Also, do some related cleanup of -cc1 options. When targetting the MS C++ ABI, we probably shouldn't pass -debugger-tuning=gdb. We were also passing -gcodeview twice, which is silly. Reviewers: smeenai, zturner Subscribers: aprantl, JDevlieghere, llvm-commits Differential Revision: https://reviews.llvm.org/D54499 llvm-svn: 346907
* Explicitly pass an isysroot to avoid the SDKROOT overriding the deployment ↵Adrian Prantl2016-10-171-2/+7
| | | | | | | | target. This fixes the green dragon builders after r284416. llvm-svn: 284423
* Update testcase for r284416.Adrian Prantl2016-10-171-1/+2
| | | | llvm-svn: 284417
* Debug info: Bump the default DWARF version on Darwin to 4.Adrian Prantl2016-09-091-1/+1
| | | | | | | This is a spiritual re-commit of r201375 with only a brief delay for upgrading the green dragon builders. llvm-svn: 281094
* We check for dwarf 5 in the backend, so go ahead and pass it along viaEric Christopher2015-12-281-0/+2
| | | | | | | | | | the front end as well. Note that DWARF5 isn't finalized and any feature support is subject to change and accepting of the option doesn't mean we're supporting the full range of the current standard. llvm-svn: 256516
* Add -gcodeview and -gdwarf to control which type Clang emitsReid Kleckner2015-08-051-0/+9
| | | | | | | | | | | | | | | Summary: By default, 'clang' emits dwarf and 'clang-cl' emits codeview. You can force emission of one or both by passing -gcodeview and -gdwarf to either driver. Reviewers: dblaikie, hans Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D11742 llvm-svn: 244097
* IR: Make metadata typeless in assembly, clang sideDuncan P. N. Exon Smith2014-12-151-3/+3
| | | | | | Match LLVM changes from r224257. llvm-svn: 224259
* specify dwarf version for SolarisAlexander Eremin2014-10-161-0/+1
| | | | llvm-svn: 219901
* Use dwarf-2 by default on OpenBSD and FreeBSD.Brad Smith2014-06-131-6/+6
| | | | | | | The Tools.cpp part of the patch partially based on a patch from FreeBSD's LLVM tree. llvm-svn: 210883
* Revert "Debug info: Make DWARF4 the default for Darwin, too."Adrian Prantl2014-02-171-1/+1
| | | | | | | | | I'm holding this change to give maintainers of Darwin buildbots more time to update their toolchains. This reverts commit r201375. llvm-svn: 201520
* Debug info: Make DWARF4 the default for Darwin, too.Adrian Prantl2014-02-141-1/+1
| | | | llvm-svn: 201375
* Attempt to migrate default dwarf version to 4 for linux.Eric Christopher2013-09-031-1/+1
| | | | llvm-svn: 189823
* Debug Info: set default to gdwarf-2 for Darwin.Manman Ren2013-07-021-0/+4
| | | | | | | | | | | | Darwin systems currently do not support dwarf version 3 or above. When we are ready, we can bump the default to gdwarf-4 for Darwin. For other systems, the default is dwarf version 3, if everything goes smoothly, we can bump the version to 4. rdar://13591116 llvm-svn: 185483
* Debug Info: support for gdwarf-2 gdwarf-3 gdwarf-4Manman Ren2013-06-191-0/+10
These options will add a module flag with name "Dwarf Version". The behavior flag is currently set to Warning, so when two values disagree, a warning will be emitted. llvm-svn: 184276
OpenPOWER on IntegriCloud