diff --git a/llvm/include/llvm/ADT/Trie.h b/llvm/include/llvm/ADT/Trie.h index 8835dff4a978..8a868e53c114 100644 --- a/llvm/include/llvm/ADT/Trie.h +++ b/llvm/include/llvm/ADT/Trie.h @@ -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) { diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h index 231aa76507d6..0dae59cf9b58 100644 --- a/llvm/include/llvm/Pass.h +++ b/llvm/include/llvm/Pass.h @@ -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