Stop saying "typedef struct" and "typedef enum".
Seeing new instances of this C-ism go in makes me a sad panda.
Change-Id: Ie3dd414b8b5e57a4164e88eb2d8559545569628d
diff --git a/src/compiler/Dataflow.h b/src/compiler/Dataflow.h
index 22a03b7..a9917a3 100644
--- a/src/compiler/Dataflow.h
+++ b/src/compiler/Dataflow.h
@@ -22,7 +22,7 @@
namespace art {
-typedef enum DataFlowAttributePos {
+enum DataFlowAttributePos {
kUA = 0,
kUB,
kUC,
@@ -54,7 +54,7 @@
kCoreC,
kGetter,
kSetter,
-} DataFlowAttributes;
+};
#define DF_NOP 0
#define DF_UA (1 << kUA)
@@ -110,42 +110,42 @@
extern const int oatDataFlowAttributes[kMirOpLast];
-typedef struct BasicBlockDataFlow {
+struct BasicBlockDataFlow {
ArenaBitVector* useV;
ArenaBitVector* defV;
ArenaBitVector* liveInV;
ArenaBitVector* phiV;
int* dalvikToSSAMap;
ArenaBitVector* endingNullCheckV;
-} BasicBlockDataFlow;
+};
-typedef struct SSARepresentation {
+struct SSARepresentation {
int numUses;
int* uses;
bool* fpUse;
int numDefs;
int* defs;
bool* fpDef;
-} SSARepresentation;
+};
/*
* An induction variable is represented by "m*i + c", where i is a basic
* induction variable.
*/
-typedef struct InductionVariableInfo {
+struct InductionVariableInfo {
int ssaReg;
int basicSSAReg;
int m; // multiplier
int c; // constant
int inc; // loop increment
-} InductionVariableInfo;
+};
-typedef struct ArrayAccessInfo {
+struct ArrayAccessInfo {
int arrayReg;
int ivReg;
int maxC; // For DIV - will affect upper bound checking
int minC; // For DIV - will affect lower bound checking
-} ArrayAccessInfo;
+};
#define ENCODE_REG_SUB(r,s) ((s<<16) | r)
#define DECODE_REG(v) (v & 0xffff)