mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-18 10:24:45 +00:00
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:
@@ -41,13 +41,13 @@ public:
|
|||||||
typedef typename NodeVectorType::const_iterator const_iterator;
|
typedef typename NodeVectorType::const_iterator const_iterator;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef enum {
|
enum QueryResult {
|
||||||
Same = -3,
|
Same = -3,
|
||||||
StringIsPrefix = -2,
|
StringIsPrefix = -2,
|
||||||
LabelIsPrefix = -1,
|
LabelIsPrefix = -1,
|
||||||
DontMatch = 0,
|
DontMatch = 0,
|
||||||
HaveCommonPart
|
HaveCommonPart
|
||||||
} QueryResult;
|
};
|
||||||
|
|
||||||
struct NodeCmp {
|
struct NodeCmp {
|
||||||
bool operator() (Node* N1, Node* N2) {
|
bool operator() (Node* N1, Node* N2) {
|
||||||
|
@@ -66,8 +66,6 @@ enum PassManagerType {
|
|||||||
PMT_Last
|
PMT_Last
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum PassManagerType PassManagerType;
|
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
/// Pass interface - Implemented by all 'passes'. Subclass this if you are an
|
/// Pass interface - Implemented by all 'passes'. Subclass this if you are an
|
||||||
/// interprocedural optimization or you do not fit into any of the more
|
/// interprocedural optimization or you do not fit into any of the more
|
||||||
|
Reference in New Issue
Block a user