| Index: src/IceTypes.h
|
| diff --git a/src/IceTypes.h b/src/IceTypes.h
|
| index 6bc2ded5ec63f8d9d388eef2cd14426a7a6b8928..fa917636583abde7e91cb51b725e15bd9488f901 100644
|
| --- a/src/IceTypes.h
|
| +++ b/src/IceTypes.h
|
| @@ -45,10 +45,15 @@ size_t typeWidthInBytes(Type Ty);
|
| size_t typeAlignInBytes(Type Ty);
|
| size_t typeNumElements(Type Ty);
|
| Type typeElementType(Type Ty);
|
| +const char *typeString(Type Ty);
|
|
|
| inline bool isVectorType(Type Ty) { return typeNumElements(Ty) > 1; }
|
|
|
| -template <> Ostream &operator<<(class Ostream &Str, const Type &Ty);
|
| +template <typename StreamType>
|
| +inline StreamType &operator<<(StreamType &Str, const Type &Ty) {
|
| + Str << typeString(Ty);
|
| + return Str;
|
| +}
|
|
|
| } // end of namespace Ice
|
|
|
|
|