mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Add more support for new style casts
Convert more code to use them git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@695 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -127,10 +127,10 @@ string ConstPoolArray::getStrValue() const {
|
||||
string Result = "[";
|
||||
if (Operands.size()) {
|
||||
Result += " " + Operands[0]->getType()->getDescription() +
|
||||
" " + Operands[0]->castConstantAsserting()->getStrValue();
|
||||
" " + cast<ConstPoolVal>(Operands[0])->getStrValue();
|
||||
for (unsigned i = 1; i < Operands.size(); i++)
|
||||
Result += ", " + Operands[i]->getType()->getDescription() +
|
||||
" " + Operands[i]->castConstantAsserting()->getStrValue();
|
||||
" " + cast<ConstPoolVal>(Operands[i])->getStrValue();
|
||||
}
|
||||
|
||||
return Result + " ]";
|
||||
@@ -140,10 +140,10 @@ string ConstPoolStruct::getStrValue() const {
|
||||
string Result = "{";
|
||||
if (Operands.size()) {
|
||||
Result += " " + Operands[0]->getType()->getDescription() +
|
||||
" " + Operands[0]->castConstantAsserting()->getStrValue();
|
||||
" " + cast<ConstPoolVal>(Operands[0])->getStrValue();
|
||||
for (unsigned i = 1; i < Operands.size(); i++)
|
||||
Result += ", " + Operands[i]->getType()->getDescription() +
|
||||
" " + Operands[i]->castConstantAsserting()->getStrValue();
|
||||
" " + cast<ConstPoolVal>(Operands[i])->getStrValue();
|
||||
}
|
||||
|
||||
return Result + " }";
|
||||
|
Reference in New Issue
Block a user