Check in to use moved stringizing code

llvm-svn: 1024
This commit is contained in:
Chris Lattner 2001-10-29 13:39:38 +00:00
parent b89ee439ae
commit 1153a795eb

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 << ","