[flang-commits] [flang] 6740694 - [flang][fir][NFC] remove dead code

Eric Schweitz via flang-commits flang-commits at lists.llvm.org
Tue Feb 23 13:21:33 PST 2021


Author: Eric Schweitz
Date: 2021-02-23T13:21:15-08:00
New Revision: 6740694742165c03e074f19141f58a8df5a887ec

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

LOG: [flang][fir][NFC] remove dead code

Removes unused function from FatalError.h.

Differential revision: https://reviews.llvm.org/D97328

Added: 
    

Modified: 
    flang/include/flang/Optimizer/Support/FatalError.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Optimizer/Support/FatalError.h b/flang/include/flang/Optimizer/Support/FatalError.h
index 3654ac9a1a8d..602045346587 100644
--- a/flang/include/flang/Optimizer/Support/FatalError.h
+++ b/flang/include/flang/Optimizer/Support/FatalError.h
@@ -26,12 +26,6 @@ LLVM_ATTRIBUTE_NORETURN inline void emitFatalError(mlir::Location loc,
   llvm::report_fatal_error("aborting");
 }
 
-/// Fatal error reporting helper. Report a fatal error without a source location
-/// and immediately abort flang.
-LLVM_ATTRIBUTE_NORETURN inline void emitFatalError(const llvm::Twine &message) {
-  llvm::report_fatal_error(message);
-}
-
 } // namespace fir
 
 #endif // FORTRAN_OPTIMIZER_SUPPORT_FATALERROR_H


        


More information about the flang-commits mailing list