[lld] r235742 - Remove unused enum value. NFC.

Rafael Espindola rafael.espindola at gmail.com
Fri Apr 24 11:36:57 PDT 2015


Author: rafael
Date: Fri Apr 24 13:36:57 2015
New Revision: 235742

URL: http://llvm.org/viewvc/llvm-project?rev=235742&view=rev
Log:
Remove unused enum value. NFC.

Modified:
    lld/trunk/include/lld/Core/Error.h
    lld/trunk/lib/Core/Error.cpp

Modified: lld/trunk/include/lld/Core/Error.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/include/lld/Core/Error.h?rev=235742&r1=235741&r2=235742&view=diff
==============================================================================
--- lld/trunk/include/lld/Core/Error.h (original)
+++ lld/trunk/include/lld/Core/Error.h Fri Apr 24 13:36:57 2015
@@ -22,7 +22,6 @@ namespace lld {
 const std::error_category &YamlReaderCategory();
 
 enum class YamlReaderError {
-  success = 0,
   unknown_keyword,
   illegal_value
 };

Modified: lld/trunk/lib/Core/Error.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Core/Error.cpp?rev=235742&r1=235741&r2=235742&view=diff
==============================================================================
--- lld/trunk/lib/Core/Error.cpp (original)
+++ lld/trunk/lib/Core/Error.cpp Fri Apr 24 13:36:57 2015
@@ -24,8 +24,6 @@ public:
 
   std::string message(int ev) const override {
     switch (static_cast<YamlReaderError>(ev)) {
-    case YamlReaderError::success:
-      return "Success";
     case YamlReaderError::unknown_keyword:
       return "Unknown keyword found in yaml file";
     case YamlReaderError::illegal_value:





More information about the llvm-commits mailing list