diff options
| author | Dan Gohman <gohman@apple.com> | 2008-10-01 15:09:37 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-10-01 15:09:37 +0000 |
| commit | fbd67be50e1fdb98ef63b3f7a65e0979bac7a331 (patch) | |
| tree | 4787b07f311d4191eb840907269f0cd13c6faf49 | |
| parent | 3a293e7404cdeddd39cbf9b41b442c21edc697c4 (diff) | |
| download | bcm5719-llvm-fbd67be50e1fdb98ef63b3f7a65e0979bac7a331.tar.gz bcm5719-llvm-fbd67be50e1fdb98ef63b3f7a65e0979bac7a331.zip | |
Don't prepend a space character for constants in Value::print.
llvm-svn: 56920
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index d46ff3f3a50..6c7b68b41d3 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/lib/VMCore/AsmWriter.cpp @@ -1809,7 +1809,7 @@ void Value::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const { AssemblyWriter W(OS, SlotTable, GV->getParent(), 0); W.write(GV); } else if (const Constant *C = dyn_cast<Constant>(this)) { - OS << ' ' << C->getType()->getDescription() << ' '; + OS << C->getType()->getDescription() << ' '; std::map<const Type *, std::string> TypeTable; WriteConstantInt(OS, C, TypeTable, 0); } else if (const Argument *A = dyn_cast<Argument>(this)) { |

