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 |