summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-09-13 22:37:55 +0000
committerEric Christopher <echristo@gmail.com>2013-09-13 22:37:55 +0000
commit138c32b402e0f384fb6c72d101cfbcf7bcc5a0f9 (patch)
tree55530cae3e1ea2d492f24e029d6e6bbf5f5922df /clang/lib/Driver/Tools.cpp
parent2d6f64e5ae58df33e31529c422d7874808e39b3b (diff)
downloadbcm5719-llvm-138c32b402e0f384fb6c72d101cfbcf7bcc5a0f9.tar.gz
bcm5719-llvm-138c32b402e0f384fb6c72d101cfbcf7bcc5a0f9.zip
Add support for -ggnu-pubnames matching the llvm support.
llvm-svn: 190729
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 0d95ecdcf8c..30ecdc05d3e 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -2499,6 +2499,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
if (Args.hasArg(options::OPT_gcolumn_info))
CmdArgs.push_back("-dwarf-column-info");
+ // FIXME: Move backend command line options to the module.
// -gsplit-dwarf should turn on -g and enable the backend dwarf
// splitting and extraction.
// FIXME: Currently only works on Linux.
@@ -2509,6 +2510,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-split-dwarf=Enable");
}
+ // -ggnu-pubnames turns on gnu style pubnames in the backend.
+ if (Args.hasArg(options::OPT_ggnu_pubnames)) {
+ CmdArgs.push_back("-backend-option");
+ CmdArgs.push_back("-generate-gnu-dwarf-pub-sections");
+ }
Args.AddAllArgs(CmdArgs, options::OPT_fdebug_types_section);
OpenPOWER on IntegriCloud