From: Eric Christopher Date: Tue, 18 Jun 2013 00:03:50 +0000 (+0000) Subject: Accept and ignore -fdebug-types-section for now. This will be used X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e8ac1b4d50a3b13bdda99f9d842b0127315ecf0;p=clang Accept and ignore -fdebug-types-section for now. This will be used later with dwarf4 type hashing. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184152 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td index b74165a9ff..c0e4c4988e 100644 --- a/include/clang/Driver/Options.td +++ b/include/clang/Driver/Options.td @@ -790,6 +790,8 @@ def ffunction_sections: Flag <["-"], "ffunction-sections">, Group, Flags<[CC1Option]>, HelpText<"Place each function in its own section (ELF Only)">; def fdata_sections : Flag <["-"], "fdata-sections">, Group, Flags<[CC1Option]>, HelpText<"Place each data in its own section (ELF Only)">; +def fdebug_types_section: Flag <["-"], "fdebug-types-section">, Group, + Flags<[CC1Option]>, HelpText<"Place debug types in their own section (ELF Only)">; def f : Joined<["-"], "f">, Group; def g_Flag : Flag<["-"], "g">, Group, HelpText<"Generate source level debug information">, Flags<[CC1Option]>; diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 67ce305893..add0c623aa 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -2497,6 +2497,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-split-dwarf=Enable"); } + + Args.AddAllArgs(CmdArgs, options::OPT_fdebug_types_section); + Args.AddAllArgs(CmdArgs, options::OPT_ffunction_sections); Args.AddAllArgs(CmdArgs, options::OPT_fdata_sections); diff --git a/test/Driver/debug-options.c b/test/Driver/debug-options.c index aad97d42c6..fec3f17c48 100644 --- a/test/Driver/debug-options.c +++ b/test/Driver/debug-options.c @@ -21,7 +21,8 @@ // RUN: | FileCheck -check-prefix=GLTO_NO %s // // RUN: %clang -### -c -grecord-gcc-switches -gno-record-gcc-switches \ -// RUN: -gstrict-dwarf -gno-strict-dwarf %s 2>&1 \ +// RUN: -gstrict-dwarf -gno-strict-dwarf -fdebug-types-section \ +// RUN: -fno-debug-types-section %s 2>&1 \ // RUN: | FileCheck -check-prefix=GIGNORE %s // // G: "-cc1"