]> granicus.if.org Git - clang/commitdiff
Accept and ignore -fdebug-types-section for now. This will be used
authorEric Christopher <echristo@gmail.com>
Tue, 18 Jun 2013 00:03:50 +0000 (00:03 +0000)
committerEric Christopher <echristo@gmail.com>
Tue, 18 Jun 2013 00:03:50 +0000 (00:03 +0000)
later with dwarf4 type hashing.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184152 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/Options.td
lib/Driver/Tools.cpp
test/Driver/debug-options.c

index b74165a9ff4580ab2da27252aa709a02289946bf..c0e4c4988e2f9e8d85ececd0336371872053d122 100644 (file)
@@ -790,6 +790,8 @@ def ffunction_sections: Flag <["-"], "ffunction-sections">, Group<f_Group>,
   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]>;
index 67ce305893f16f49b765df99b9b3939dbd58d4eb..add0c623aa2f106a46ede9ad5a3a4fcc1033409e 100644 (file)
@@ -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);
 
index aad97d42c686d2d85c36bd2f52ba3e9649712ab3..fec3f17c48da2b0cd411c89fa40f8be288255f92 100644 (file)
@@ -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"