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
This commit is contained in:
Dan Gohman 2008-03-13 01:07:53 +00:00
parent b27087f5aa
commit 59746c2516
2 changed files with 2 additions and 4 deletions

View 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) {

View 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