aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-10-03 03:50:44 +0000
committerFangrui Song <maskray@google.com>2018-10-03 03:50:44 +0000
commit65ebd13f4185681b572b4ccd62d6dff33eec511c (patch)
tree4c68d50c25da8a45fb00507239cb13af54a83163 /clang/lib/Frontend/CompilerInvocation.cpp
parent3d76d3605989238c839c5510b1adc6d013b3db47 (diff)
downloadllvm-65ebd13f4185681b572b4ccd62d6dff33eec511c.zip
llvm-65ebd13f4185681b572b4ccd62d6dff33eec511c.tar.gz
llvm-65ebd13f4185681b572b4ccd62d6dff33eec511c.tar.bz2
[Frontend] Delete -print-decl-contexts
Summary: Its job is covered by -ast-dump. The option is rarely used and lacks many AST nodes which will lead to llvm_unreachable() crash. Reviewers: rsmith, arphaman Reviewed By: rsmith Subscribers: jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D52529 llvm-svn: 343660
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 32fc939..35eb55d 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1469,8 +1469,6 @@ static InputKind ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
Opts.ProgramAction = frontend::ModuleFileInfo; break;
case OPT_verify_pch:
Opts.ProgramAction = frontend::VerifyPCH; break;
- case OPT_print_decl_contexts:
- Opts.ProgramAction = frontend::PrintDeclContext; break;
case OPT_print_preamble:
Opts.ProgramAction = frontend::PrintPreamble; break;
case OPT_E:
@@ -2840,7 +2838,6 @@ static bool isStrictlyPreprocessorAction(frontend::ActionKind Action) {
case frontend::ModuleFileInfo:
case frontend::VerifyPCH:
case frontend::PluginAction:
- case frontend::PrintDeclContext:
case frontend::RewriteObjC:
case frontend::RewriteTest:
case frontend::RunAnalysis: