No need for typedefs with enums in C++.
authorDan Gohman <gohman@apple.com>
Thu, 13 Mar 2008 01:07:53 +0000 (01:07 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 13 Mar 2008 01:07:53 +0000 (01:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48312 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/Trie.h
include/llvm/Pass.h

index 8835dff4a978aa22ff39da195d091cfb5f8a0337..8a868e53c11418018d13734e579e4049b888c439 100644 (file)
@@ -41,13 +41,13 @@ public:
     typedef typename NodeVectorType::const_iterator const_iterator;
 
   private:
-    typedef enum {
+    enum QueryResult {
       Same           = -3,
       StringIsPrefix = -2,
       LabelIsPrefix  = -1,
       DontMatch      = 0,
       HaveCommonPart
-    } QueryResult;
+    };
 
     struct NodeCmp {
       bool operator() (Node* N1, Node* N2) {
index 231aa76507d67a53612f18cbf20461b86be2c9bc..0dae59cf9b583e358a8715e62232feabeb7e07e6 100644 (file)
@@ -66,8 +66,6 @@ enum PassManagerType {
   PMT_Last
 };
 
-typedef enum PassManagerType PassManagerType;
-
 //===----------------------------------------------------------------------===//
 /// Pass interface - Implemented by all 'passes'.  Subclass this if you are an
 /// interprocedural optimization or you do not fit into any of the more