[flang-commits] [flang] df22133 - [flang][driver] Remove unused code (nfc)

Andrzej Warzynski via flang-commits flang-commits at lists.llvm.org
Tue Feb 16 02:01:46 PST 2021


Author: Andrzej Warzynski
Date: 2021-02-16T10:00:41Z
New Revision: df22133a8a402ed2d31ff92482678c5092792e66

URL: https://github.com/llvm/llvm-project/commit/df22133a8a402ed2d31ff92482678c5092792e66
DIFF: https://github.com/llvm/llvm-project/commit/df22133a8a402ed2d31ff92482678c5092792e66.diff

LOG: [flang][driver] Remove unused code (nfc)

Added: 
    

Modified: 
    flang/include/flang/Frontend/FrontendOptions.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Frontend/FrontendOptions.h b/flang/include/flang/Frontend/FrontendOptions.h
index 0df8bdad5e83..aa162df04061 100644
--- a/flang/include/flang/Frontend/FrontendOptions.h
+++ b/flang/include/flang/Frontend/FrontendOptions.h
@@ -56,26 +56,6 @@ Fortran::parser::AnalyzedObjectsAsFortran getBasicAsFortran();
 /// \return True if the file extension should be processed as free form
 bool isFreeFormSuffix(llvm::StringRef suffix);
 
-inline const char *GetActionKindName(const ActionKind ak) {
-  switch (ak) {
-  case InputOutputTest:
-    return "InputOutputTest";
-  case PrintPreprocessedInput:
-    return "PrintPreprocessedInput";
-  case ParseSyntaxOnly:
-    return "ParseSyntaxOnly";
-  default:
-    return "<unknown ActionKind>";
-    // TODO:
-    // case RunPreprocessor:
-    // case ParserSyntaxOnly:
-    // case EmitLLVM:
-    // case EmitLLVMOnly:
-    // case EmitCodeGenOnly:
-    // (...)
-  }
-}
-
 enum class Language : uint8_t {
   Unknown,
 


        


More information about the flang-commits mailing list