Don't prepend a space character for constants in Value::print.
authorDan Gohman <gohman@apple.com>
Wed, 1 Oct 2008 15:09:37 +0000 (15:09 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 1 Oct 2008 15:09:37 +0000 (15:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56920 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index d46ff3f3a509275d0e4753ff8ebeea88ae8dd0b0..6c7b68b41d305b5354063fbdf501e5d5b77d5063 100644 (file)
@@ -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)) {