r184152 - Accept and ignore -fdebug-types-section for now. This will be used
Eric Christopher
echristo at gmail.com
Mon Jun 17 17:03:50 PDT 2013
Author: echristo
Date: Mon Jun 17 19:03:50 2013
New Revision: 184152
URL: http://llvm.org/viewvc/llvm-project?rev=184152&view=rev
Log:
Accept and ignore -fdebug-types-section for now. This will be used
later with dwarf4 type hashing.
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/lib/Driver/Tools.cpp
cfe/trunk/test/Driver/debug-options.c
Modified: cfe/trunk/include/clang/Driver/Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Options.td?rev=184152&r1=184151&r2=184152&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Options.td (original)
+++ cfe/trunk/include/clang/Driver/Options.td Mon Jun 17 19:03:50 2013
@@ -790,6 +790,8 @@ def ffunction_sections: Flag <["-"], "ff
Flags<[CC1Option]>, HelpText<"Place each function in its own section (ELF Only)">;
def fdata_sections : Flag <["-"], "fdata-sections">, Group<f_Group>, Flags<[CC1Option]>,
HelpText<"Place each data in its own section (ELF Only)">;
+def fdebug_types_section: Flag <["-"], "fdebug-types-section">, Group<f_Group>,
+ Flags<[CC1Option]>, HelpText<"Place debug types in their own section (ELF Only)">;
def f : Joined<["-"], "f">, Group<f_Group>;
def g_Flag : Flag<["-"], "g">, Group<g_Group>,
HelpText<"Generate source level debug information">, Flags<[CC1Option]>;
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=184152&r1=184151&r2=184152&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Mon Jun 17 19:03:50 2013
@@ -2497,6 +2497,9 @@ void Clang::ConstructJob(Compilation &C,
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);
Modified: cfe/trunk/test/Driver/debug-options.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/debug-options.c?rev=184152&r1=184151&r2=184152&view=diff
==============================================================================
--- cfe/trunk/test/Driver/debug-options.c (original)
+++ cfe/trunk/test/Driver/debug-options.c Mon Jun 17 19:03:50 2013
@@ -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"
More information about the cfe-commits
mailing list