Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: src/IceTypes.h

Issue 659513005: Allow conditional lit tests in Subzero, based on build flags. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Add -Wno-error=unused-parameter Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pydir/ifatts.py ('k') | src/IceTypes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « pydir/ifatts.py ('k') | src/IceTypes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698