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

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 nits. 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 | « src/IceTypes.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTypes.cpp
diff --git a/src/IceTypes.cpp b/src/IceTypes.cpp
index 11ac5b780e4fe34121b99858d10d675f90b4126c..6b81d8ac9e8765aef9dee0736bbcee4972373e8a 100644
--- a/src/IceTypes.cpp
+++ b/src/IceTypes.cpp
@@ -230,7 +230,7 @@ Type getCompareResultType(Type Ty) {
SizeT getScalarIntBitWidth(Type Ty) {
assert(isScalarIntegerType(Ty));
- if (Ty == Ice::IceType_i1)
+ if (Ty == IceType_i1)
return 1;
return typeWidthInBytes(Ty) * CHAR_BIT;
}
@@ -245,4 +245,18 @@ const char *typeString(Type Ty) {
return "???";
}
+void FuncSigType::dump(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
« no previous file with comments | « src/IceTypes.h ('k') | src/PNaClTranslator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698