]> granicus.if.org Git - clang/commitdiff
remove a dead enum
authorChris Lattner <sabre@nondot.org>
Sat, 22 Nov 2008 20:47:38 +0000 (20:47 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 22 Nov 2008 20:47:38 +0000 (20:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59879 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Diagnostic.h
lib/Analysis/PathDiagnostic.cpp
lib/Driver/TextDiagnosticPrinter.cpp

index f782328ffd098cf7560bae06c18b9d55299cd06d..f622d785b678ca87e24ad041af437d3f5b3ddb8c 100644 (file)
@@ -59,7 +59,7 @@ class Diagnostic {
 public:
   /// Level - The level of the diagnostic, after it has been through mapping.
   enum Level {
-    Ignored, Note, Warning, Error, Fatal
+    Ignored, Note, Warning, Error
   };
   
 private:  
index 29ea8c0e3753ae30181377bf18f6feebdb09aed1..d25c1b4938f9b54b8a0b05d612db41a62971b1e7 100644 (file)
@@ -33,7 +33,6 @@ void PathDiagnosticClient::HandleDiagnostic(Diagnostic::Level DiagLevel,
   case Diagnostic::Note:    LevelStr = "note: "; break;
   case Diagnostic::Warning: LevelStr = "warning: "; break;
   case Diagnostic::Error:   LevelStr = "error: "; break;
-  case Diagnostic::Fatal:   LevelStr = "fatal error: "; break;
   }
 
   llvm::SmallString<100> StrC;
index b4be9307ea73d0d6ed7fa59826399d812060a6db..719c611e2c980f53d46c5442e1ee863515a1d60c 100644 (file)
@@ -139,7 +139,6 @@ void TextDiagnosticPrinter::HandleDiagnostic(Diagnostic::Level Level,
   case Diagnostic::Note:    OS << "note: "; break;
   case Diagnostic::Warning: OS << "warning: "; break;
   case Diagnostic::Error:   OS << "error: "; break;
-  case Diagnostic::Fatal:   OS << "fatal error: "; break;
   }
   
   llvm::SmallString<100> OutStr;