aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/AsmWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-12 18:21:53 +0000
committerChris Lattner <sabre@nondot.org>2002-04-12 18:21:53 +0000
commit02b9399baef2afc1a0c8c83152d2f28145658bbc (patch)
tree44bc75da0851a5a6b809dc0ea01f7ae4424dae5c /lib/VMCore/AsmWriter.cpp
parent9d6e7eb74fce8dccaeb3f42c6392de727baff310 (diff)
* Add comment
* Do not print a space before the * in a pointer type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/AsmWriter.cpp')
-rw-r--r--lib/VMCore/AsmWriter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp
index 6cdbf9def3..f5e0fcfa92 100644
--- a/lib/VMCore/AsmWriter.cpp
+++ b/lib/VMCore/AsmWriter.cpp
@@ -2,8 +2,12 @@
//
// This library implements the functionality defined in llvm/Assembly/Writer.h
//
+// Note that these routines must be extremely tolerant of various errors in the
+// LLVM code, because of of the primary uses of it is for debugging
+// transformations.
+//
// TODO: print out the type name instead of the full type if a particular type
-// is in the symbol table...
+// is in the symbol table...
//
//===----------------------------------------------------------------------===//
@@ -178,7 +182,7 @@ static string calcTypeName(const Type *Ty, vector<const Type *> &TypeStack,
}
case Type::PointerTyID:
Result = calcTypeName(cast<const PointerType>(Ty)->getElementType(),
- TypeStack, TypeNames) + " *";
+ TypeStack, TypeNames) + "*";
break;
case Type::ArrayTyID: {
const ArrayType *ATy = cast<const ArrayType>(Ty);