mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
* 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
This commit is contained in:
parent
9d6e7eb74f
commit
02b9399bae
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user