From 719ace4734f519c67fd2c1ff7a232c079309a615 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 9 Mar 2012 18:06:03 -0800 Subject: Stop saying "typedef struct" and "typedef enum". Seeing new instances of this C-ism go in makes me a sad panda. Change-Id: Ie3dd414b8b5e57a4164e88eb2d8559545569628d --- src/compiler/Compiler.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/compiler/Compiler.h') diff --git a/src/compiler/Compiler.h b/src/compiler/Compiler.h index 8636e11b36..a457fa6c9d 100644 --- a/src/compiler/Compiler.h +++ b/src/compiler/Compiler.h @@ -135,7 +135,7 @@ extern std::string compilerMethodMatch; /* Flips sense of compilerMethodMatch - apply flags if doesn't match */ extern bool compilerFlipMatch; -typedef enum OatMethodAttributes { +enum OatMethodAttributes { kIsCallee = 0, /* Code is part of a callee (invoked by a hot trace) */ kIsHot, /* Code is part of a hot trace */ kIsLeaf, /* Method is leaf */ @@ -144,7 +144,7 @@ typedef enum OatMethodAttributes { kIsGetter, /* Method fits the getter pattern */ kIsSetter, /* Method fits the setter pattern */ kCannotCompile, /* Method cannot be compiled */ -} OatMethodAttributes; +}; #define METHOD_IS_CALLEE (1 << kIsCallee) #define METHOD_IS_HOT (1 << kIsHot) @@ -156,14 +156,14 @@ typedef enum OatMethodAttributes { #define METHOD_CANNOT_COMPILE (1 << kCannotCompile) /* Customized node traversal orders for different needs */ -typedef enum DataFlowAnalysisMode { +enum DataFlowAnalysisMode { kAllNodes = 0, // All nodes kReachableNodes, // All reachable nodes kPreOrderDFSTraversal, // Depth-First-Search / Pre-Order kPostOrderDFSTraversal, // Depth-First-Search / Post-Order kPostOrderDOMTraversal, // Dominator tree / Post-Order kReversePostOrderTraversal, // Depth-First-Search / reverse Post-Order -} DataFlowAnalysisMode; +}; struct CompilationUnit; struct BasicBlock; -- cgit v1.2.3-59-g8ed1b