mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 13:10:34 +00:00
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:
parent
3259a3237d
commit
24d3a8b58d
@ -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