summaryrefslogtreecommitdiff
path: root/src/compiler/Compiler.h
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2012-03-09 18:06:03 -0800
committer Elliott Hughes <enh@google.com> 2012-03-09 18:06:03 -0800
commit719ace4734f519c67fd2c1ff7a232c079309a615 (patch)
treeccce9abb445238e4a00c9d4bfba093fb16bc8c7c /src/compiler/Compiler.h
parentb3cd1229e6904365ca0ca2a7bbc4701ad1908154 (diff)
Stop saying "typedef struct" and "typedef enum".
Seeing new instances of this C-ism go in makes me a sad panda. Change-Id: Ie3dd414b8b5e57a4164e88eb2d8559545569628d
Diffstat (limited to 'src/compiler/Compiler.h')
-rw-r--r--src/compiler/Compiler.h8
1 files changed, 4 insertions, 4 deletions
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;