Benjamin Kramer
7555b54020
Reduce temp file pollution in some test cases.
...
llvm-svn: 161237
2012-08-03 10:35:06 +00:00
Alexey Samsonov
f50a9ffd0b
Improve support for -g options accepted by Clang:
...
1. Accept flags -g[0-3], -ggdb[0-3], -gdwarf-[2-4] and collapse them to simple -g (except -g0/-ggdb0).
2. Produce driver error on unsupported formats (-gcoff, -gstabs, -gvms) and options (-gtoggle).
3. Recognize and ignore flags -g[no-]strict-dwarf, -g[no-]record-gcc-switches.
llvm-svn: 158906
2012-06-21 08:22:39 +00:00
Alexey Samsonov
dda3a7f914
Make Clang driver pass the last option from -g group to the compiler.
...
Leave a better fixme for different debug info flags
llvm-svn: 157602
2012-05-29 08:10:34 +00:00
Alexey Samsonov
74a3868dbb
This patch adds a new Clang compiler flag "-gline-tables-only".
...
It reduces the amount of emitted debug information:
1) DIEs in .debug_info have types DW_TAG_compile_unit, DW_TAG_subprogram,
DW_TAG_inlined_subroutine (for opt builds) and DW_TAG_lexical_block only.
2) .debug_str contains only function names.
3) No debug data for types/namespaces/variables is emitted.
4) The data in .debug_line is enough to produce valid stack traces with
function names and line numbers.
Reviewed by Eric Christopher.
llvm-svn: 156160
2012-05-04 07:39:27 +00:00
Chad Rosier
2ad368fce3
[driver] Add support for -g2 and -ggdb debug flags.
...
rdar://10947759
llvm-svn: 151654
2012-02-28 20:49:04 +00:00
NAKAMURA Takumi
5a5bb93004
test/Driver/debug-options*.c: Tweak r147819 to split out another cc1as-sensitive test. gcc driver is invoked for assembling on cygming.
...
llvm-svn: 148022
2012-01-12 06:15:01 +00:00
Eric Christopher
fc3ee566eb
Add -g to the cc1as flags only if we're dealing with an original
...
source file. Otherwise -g -save-temps will error out on the compile
of any .c file.
Fixes about 4000 of the errors in the clang-tests gdb test suite.
llvm-svn: 147819
2012-01-10 00:38:01 +00:00
NAKAMURA Takumi
84a5dfdf72
Split out clang/test/Driver/debug-options-as.c from debug-options.c, and mark it as XFAIL: mingw32.
...
Mingw32 target has not supported integrated-as yet.
llvm-svn: 147386
2011-12-31 02:36:23 +00:00
Kevin Enderby
292dc080e0
Last part of support for generating dwarf for assembly source files. This gets
...
the clang driver to enable this when assembling a .s file. rdar://9275556
llvm-svn: 147167
2011-12-22 19:31:58 +00:00
Chad Rosier
c2bf338d35
[driver] Don't blindly accept all -g options.
...
rdar://10383444
llvm-svn: 143732
2011-11-04 19:28:44 +00:00