Print opaque types
authorChris Lattner <sabre@nondot.org>
Wed, 14 May 2003 17:50:47 +0000 (17:50 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 May 2003 17:50:47 +0000 (17:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6200 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 28f26c833ad91744b2ca0f50ea9a9097491e6847..7c58e63275a69d4838345d6c77527577f0b236c7 100644 (file)
@@ -153,6 +153,9 @@ static std::string calcTypeName(const Type *Ty,
     Result += calcTypeName(ATy->getElementType(), TypeStack, TypeNames) + "]";
     break;
   }
+  case Type::OpaqueTyID:
+    Result = "opaque";
+    break;
   default:
     Result = "<unrecognized-type>";
   }