Skip to content

Commit

Permalink
[flang][f18] Remove "-fdebug-resolve-names"
Browse files Browse the repository at this point in the history
This option doesn't enable any unique feature/code-patch. Also, it is
neither tested nor documented.

Differential Revision: https://reviews.llvm.org/D91537
  • Loading branch information
banach-space committed Nov 16, 2020
1 parent 44a4f93 commit 6c02835
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions flang/tools/f18/f18.cpp
Expand Up @@ -99,7 +99,6 @@ struct DriverOptions {
bool dumpParseTree{false};
bool dumpPreFirTree{false};
bool dumpSymbols{false};
bool debugResolveNames{false};
bool debugNoSemantics{false};
bool debugModuleWriter{false};
bool measureTree{false};
Expand Down Expand Up @@ -247,9 +246,9 @@ std::string CompileFortran(std::string path, Fortran::parser::Options options,
if (driver.measureTree) {
MeasureParseTree(parseTree);
}
if (!driver.debugNoSemantics || driver.debugResolveNames ||
driver.dumpSymbols || driver.dumpUnparseWithSymbols ||
driver.getDefinition || driver.getSymbolsSources) {
if (!driver.debugNoSemantics || driver.dumpSymbols ||
driver.dumpUnparseWithSymbols || driver.getDefinition ||
driver.getSymbolsSources) {
Fortran::semantics::Semantics semantics{semanticsContext, parseTree,
parsing.cooked().AsCharBlock(), driver.debugModuleWriter};
semantics.Perform();
Expand Down Expand Up @@ -517,8 +516,6 @@ int main(int argc, char *const argv[]) {
driver.dumpPreFirTree = true;
} else if (arg == "-fdebug-dump-symbols") {
driver.dumpSymbols = true;
} else if (arg == "-fdebug-resolve-names") {
driver.debugResolveNames = true;
} else if (arg == "-fdebug-module-writer") {
driver.debugModuleWriter = true;
} else if (arg == "-fdebug-measure-parse-tree") {
Expand Down Expand Up @@ -646,7 +643,6 @@ int main(int argc, char *const argv[]) {
<< " -fdebug-dump-provenance\n"
<< " -fdebug-dump-parse-tree\n"
<< " -fdebug-dump-symbols\n"
<< " -fdebug-resolve-names\n"
<< " -fdebug-instrumented-parse\n"
<< " -fdebug-no-semantics disable semantic checks\n"
<< " -fget-definition\n"
Expand Down

0 comments on commit 6c02835

Please sign in to comment.