aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-13 01:07:53 +0000
committerDan Gohman <gohman@apple.com>2008-03-13 01:07:53 +0000
commit59746c251654bd3f500ba329fa7fa9425e03ddee (patch)
tree1570ec70abeb11f07eacafbb808f85d5de7f21a3
parentb27087f5aa574f875598f4a309b7dd687c64a455 (diff)
No need for typedefs with enums in C++.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48312 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/Trie.h4
-rw-r--r--include/llvm/Pass.h2
2 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/ADT/Trie.h b/include/llvm/ADT/Trie.h
index 8835dff4a9..8a868e53c1 100644
--- a/include/llvm/ADT/Trie.h
+++ b/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/include/llvm/Pass.h b/include/llvm/Pass.h
index 231aa76507..0dae59cf9b 100644
--- a/include/llvm/Pass.h
+++ b/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