Check in to use moved stringizing code

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1024 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-10-29 13:39:38 +00:00
parent 3259a3237d
commit 24d3a8b58d

View File

@ -399,8 +399,16 @@ SparcAsmPrinter::printConstant(const ConstPoolVal* CV, string valID)
Out << valID << ":" << endl;
Out << "\t"
<< TypeToDataDirective(CV->getType()) << "\t"
<< CV->getStrValue(true) << endl;
<< TypeToDataDirective(CV->getType()) << "\t";
if (ConstPoolArray *CPA = dyn_cast<ConstPoolArray>(CV)) {
if (isStringCompatible(CPA))
Out << getAsCString(CPA) << endl;
else
Out << CV->getStrValue() << endl; // TODO: This is broken
} else {
Out << CV->getStrValue() << endl; // TODO: this is broken
}
Out << "\t.type" << "\t" << valID << ",#object" << endl;
Out << "\t.size" << "\t" << valID << ","