Index: src/IceTypes.h |
diff --git a/src/IceTypes.h b/src/IceTypes.h |
index 94d4dc08908fb5c61bdc43abcc6d51c2b511cdc1..16195238d0b871008bf10e951cf1a8ff4699fe29 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(TargetArch Arch); |
+ |
+inline Ostream &operator<<(Ostream &Stream, TargetArch Arch) { |
+ return Stream << targetArchString(Arch); |
+} |
+ |
enum OptLevel { |
Opt_m1, |
Opt_0, |