diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-04-12 18:21:53 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-04-12 18:21:53 +0000 | 
| commit | 189088e5d63b58274cff6ab65ecd7645436751f2 (patch) | |
| tree | 72e01d0eac551ba7ab2641dc4b9af5803dccbbba /llvm/lib/VMCore/AsmWriter.cpp | |
| parent | b86b11a02e774b1ba0d9b8f4ec24453441555d8c (diff) | |
| download | bcm5719-llvm-189088e5d63b58274cff6ab65ecd7645436751f2.tar.gz bcm5719-llvm-189088e5d63b58274cff6ab65ecd7645436751f2.zip | |
* Add comment
* Do not print a space before the * in a pointer type.
llvm-svn: 2232
Diffstat (limited to 'llvm/lib/VMCore/AsmWriter.cpp')
| -rw-r--r-- | llvm/lib/VMCore/AsmWriter.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp index 6cdbf9def32..f5e0fcfa922 100644 --- a/llvm/lib/VMCore/AsmWriter.cpp +++ b/llvm/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); | 

