Chromium Code Reviews| Index: src/IceTypes.h |
| diff --git a/src/IceTypes.h b/src/IceTypes.h |
| index 94d4dc08908fb5c61bdc43abcc6d51c2b511cdc1..5e1c77e91d460ec9a7b6b47b4277088fb6079b6f 100644 |
| --- a/src/IceTypes.h |
| +++ b/src/IceTypes.h |
| @@ -28,12 +28,18 @@ enum Type { |
| }; |
| enum TargetArch { |
| - Target_X8632, |
| - Target_X8664, |
| - Target_ARM32, |
| - Target_ARM64 |
| +#define X(tag, str) tag, |
| + TARGETARCH_TABLE |
| +#undef X |
| + TargetArch_NUM |
| }; |
| +const char *targetArchString(const TargetArch Arch); |
| + |
|
Jim Stichnoth
2014/10/22 18:09:21
I don't think either "const" in "const TargetArch"
Karl
2014/10/27 21:24:22
Done.
|
| +inline Ostream &operator<<(Ostream &Stream, const TargetArch Arch) { |
| + return Stream << targetArchString(Arch); |
| +} |
| + |
| enum OptLevel { |
| Opt_m1, |
| Opt_0, |