summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-12-28 19:58:44 +0000
committerEric Christopher <echristo@gmail.com>2015-12-28 19:58:44 +0000
commit3cb592d6b60c080a9cca4dced505921a09c12a2e (patch)
tree228e086ea2e11e081ce589e1bfabeedce43fb279 /clang/lib/Driver/Tools.cpp
parent8562493f6a65a079950185e5169efd149043e6a0 (diff)
downloadbcm5719-llvm-3cb592d6b60c080a9cca4dced505921a09c12a2e.tar.gz
bcm5719-llvm-3cb592d6b60c080a9cca4dced505921a09c12a2e.zip
We check for dwarf 5 in the backend, so go ahead and pass it along via
the front end as well. Note that DWARF5 isn't finalized and any feature support is subject to change and accepting of the option doesn't mean we're supporting the full range of the current standard. llvm-svn: 256516
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index d28825152e8..5835cdba1dd 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -2505,6 +2505,7 @@ static unsigned DwarfVersionNum(StringRef ArgValue) {
.Case("-gdwarf-2", 2)
.Case("-gdwarf-3", 3)
.Case("-gdwarf-4", 4)
+ .Case("-gdwarf-5", 5)
.Default(0);
}
@@ -4098,7 +4099,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// If a -gdwarf argument appeared, remember it.
if (Arg *A = Args.getLastArg(options::OPT_gdwarf_2, options::OPT_gdwarf_3,
- options::OPT_gdwarf_4))
+ options::OPT_gdwarf_4, options::OPT_gdwarf_5))
DwarfVersion = DwarfVersionNum(A->getSpelling());
// Forward -gcodeview.
OpenPOWER on IntegriCloud