[llvm-commits] [llvm] r48312 - in /llvm/trunk/include/llvm: ADT/Trie.h Pass.h

Dan Gohman gohman at apple.com
Wed Mar 12 18:07:54 PDT 2008


Author: djg
Date: Wed Mar 12 20:07:53 2008
New Revision: 48312

URL: http://llvm.org/viewvc/llvm-project?rev=48312&view=rev
Log:
No need for typedefs with enums in C++.

Modified:
    llvm/trunk/include/llvm/ADT/Trie.h
    llvm/trunk/include/llvm/Pass.h

Modified: llvm/trunk/include/llvm/ADT/Trie.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Trie.h?rev=48312&r1=48311&r2=48312&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/Trie.h (original)
+++ llvm/trunk/include/llvm/ADT/Trie.h Wed Mar 12 20:07:53 2008
@@ -41,13 +41,13 @@
     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) {

Modified: llvm/trunk/include/llvm/Pass.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Pass.h?rev=48312&r1=48311&r2=48312&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Pass.h (original)
+++ llvm/trunk/include/llvm/Pass.h Wed Mar 12 20:07:53 2008
@@ -66,8 +66,6 @@
   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





More information about the llvm-commits mailing list