mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
No need for typedefs with enums in C++.
llvm-svn: 48312
This commit is contained in:
parent
399e1101ba
commit
37f10d4aeb
@ -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) {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user