projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd8619d
)
Support opaque type printing a little bit at least
author
Chris Lattner
<sabre@nondot.org>
Sun, 26 May 2002 20:17:54 +0000
(20:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 26 May 2002 20:17:54 +0000
(20:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2748
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index 527df4f0a1717537b617a6019e2404742165626a..fe66575faa0a85b10babac8608295bf120b42fc5 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-481,6
+481,8
@@
ostream &AssemblyWriter::printTypeAtLeastOneLevel(const Type *Ty) {
} else if (ArrayType *ATy = dyn_cast<ArrayType>(Ty)) {
Out << "[" << ATy->getNumElements() << " x ";
printType(ATy->getElementType()) << "]";
+ } else if (OpaqueType *OTy = dyn_cast<OpaqueType>(Ty)) {
+ Out << OTy->getDescription();
} else {
assert(Ty->isPrimitiveType() && "Unknown derived type!");
printType(Ty);