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:
9cebe2d
)
When you hand WriteAsOperand a type, it now prints out its symbolic name.
author
Brian Gaeke
<gaeke@uiuc.edu>
Sun, 16 Nov 2003 23:08:27 +0000
(23:08 +0000)
committer
Brian Gaeke
<gaeke@uiuc.edu>
Sun, 16 Nov 2003 23:08:27 +0000
(23:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10042
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 da3826019ab3487deec68c1e06b268b7dd87dd9d..f92fe25fd2528f0f2cbefc6d79c6f774eddee393 100644
(file)
--- a/
lib/VMCore/AsmWriter.cpp
+++ b/
lib/VMCore/AsmWriter.cpp
@@
-458,6
+458,9
@@
std::ostream &WriteAsOperand(std::ostream &Out, const Value *V, bool PrintType,
if (PrintType)
printTypeInt(Out, V->getType(), TypeNames);
+ if (const Type *Ty = dyn_cast<Type> (V))
+ printTypeInt(Out, Ty, TypeNames);
+
WriteAsOperandInternal(Out, V, PrintName, TypeNames, 0);
return Out;
}