mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Check in to use moved stringizing code
llvm-svn: 1024
This commit is contained in:
parent
b89ee439ae
commit
1153a795eb
@ -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 << ","
|
||||
|
Loading…
Reference in New Issue
Block a user