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

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: Fix issues in patch set 8. 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
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,

Powered by Google App Engine
This is Rietveld 408576698