| Index: src/IceTypes.cpp
|
| diff --git a/src/IceTypes.cpp b/src/IceTypes.cpp
|
| index 515be2d667aee80b3d70d6e295704958bec07961..0724e5146d116225e9351cf8074dc3c455d88446 100644
|
| --- a/src/IceTypes.cpp
|
| +++ b/src/IceTypes.cpp
|
| @@ -81,18 +81,13 @@ Type typeElementType(Type Ty) {
|
| return ElementType;
|
| }
|
|
|
| -// ======================== Dump routines ======================== //
|
| -
|
| -template <> Ostream &operator<<(Ostream &Str, const Type &Ty) {
|
| +const char *typeString(Type Ty) {
|
| size_t Index = static_cast<size_t>(Ty);
|
| if (Index < TypeAttributesSize) {
|
| - Str << TypeAttributes[Index].DisplayString;
|
| - } else {
|
| - Str << "???";
|
| - llvm_unreachable("Invalid type for printing");
|
| + return TypeAttributes[Index].DisplayString;
|
| }
|
| -
|
| - return Str;
|
| + llvm_unreachable("Invalid type for typeString");
|
| + return "???";
|
| }
|
|
|
| } // end of namespace Ice
|
|
|