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

Unified Diff: src/IceTypes.cpp

Issue 625243002: Convert Subzero's bitcode reader to generate ICE types. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix comment. 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.cpp
diff --git a/src/IceTypes.cpp b/src/IceTypes.cpp
index 11ac5b780e4fe34121b99858d10d675f90b4126c..afba0b14d1cd92e80a06ee7cc21257dc285e750b 100644
--- a/src/IceTypes.cpp
+++ b/src/IceTypes.cpp
@@ -245,4 +245,18 @@ const char *typeString(Type Ty) {
return "???";
}
+void FcnSigType::Print(Ostream &Stream) const {
+ Stream << ReturnType << " (";
+ bool IsFirst = true;
+ for (const Type ArgTy : ArgList) {
+ if (IsFirst) {
+ IsFirst = false;
+ } else {
+ Stream << ", ";
+ }
+ Stream << ArgTy;
+ }
+ Stream << ")";
+}
+
} // end of namespace Ice

Powered by Google App Engine
This is Rietveld 408576698