mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
don't use the result of WriteTypeSymbolic or WriteAsOperand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54978 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2c69184fd6
commit
65a7bd8b8e
@ -269,7 +269,8 @@ void AsmPrinter::EmitConstantPool(unsigned Alignment, const char *Section,
|
|||||||
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
for (unsigned i = 0, e = CP.size(); i != e; ++i) {
|
||||||
O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << '_'
|
O << TAI->getPrivateGlobalPrefix() << "CPI" << getFunctionNumber() << '_'
|
||||||
<< CP[i].second << ":\t\t\t\t\t" << TAI->getCommentString() << ' ';
|
<< CP[i].second << ":\t\t\t\t\t" << TAI->getCommentString() << ' ';
|
||||||
WriteTypeSymbolic(O, CP[i].first.getType(), 0) << '\n';
|
WriteTypeSymbolic(O, CP[i].first.getType(), 0);
|
||||||
|
O << '\n';
|
||||||
if (CP[i].first.isMachineConstantPoolEntry())
|
if (CP[i].first.isMachineConstantPoolEntry())
|
||||||
EmitMachineConstantPoolValue(CP[i].first.Val.MachineCPVal);
|
EmitMachineConstantPoolValue(CP[i].first.Val.MachineCPVal);
|
||||||
else
|
else
|
||||||
|
@ -4992,12 +4992,12 @@ void SDNode::dump(const SelectionDAG *G) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
|
if (const ConstantSDNode *CSDN = dyn_cast<ConstantSDNode>(this)) {
|
||||||
cerr << "<" << CSDN->getAPIntValue() << ">";
|
cerr << '<' << CSDN->getAPIntValue() << '>';
|
||||||
} else if (const ConstantFPSDNode *CSDN = dyn_cast<ConstantFPSDNode>(this)) {
|
} else if (const ConstantFPSDNode *CSDN = dyn_cast<ConstantFPSDNode>(this)) {
|
||||||
if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEsingle)
|
if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEsingle)
|
||||||
cerr << "<" << CSDN->getValueAPF().convertToFloat() << ">";
|
cerr << '<' << CSDN->getValueAPF().convertToFloat() << '>';
|
||||||
else if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEdouble)
|
else if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEdouble)
|
||||||
cerr << "<" << CSDN->getValueAPF().convertToDouble() << ">";
|
cerr << '<' << CSDN->getValueAPF().convertToDouble() << '>';
|
||||||
else {
|
else {
|
||||||
cerr << "<APFloat(";
|
cerr << "<APFloat(";
|
||||||
CSDN->getValueAPF().convertToAPInt().dump();
|
CSDN->getValueAPF().convertToAPInt().dump();
|
||||||
@ -5006,8 +5006,9 @@ void SDNode::dump(const SelectionDAG *G) const {
|
|||||||
} else if (const GlobalAddressSDNode *GADN =
|
} else if (const GlobalAddressSDNode *GADN =
|
||||||
dyn_cast<GlobalAddressSDNode>(this)) {
|
dyn_cast<GlobalAddressSDNode>(this)) {
|
||||||
int offset = GADN->getOffset();
|
int offset = GADN->getOffset();
|
||||||
cerr << "<";
|
cerr << '<';
|
||||||
WriteAsOperand(*cerr.stream(), GADN->getGlobal()) << ">";
|
WriteAsOperand(*cerr.stream(), GADN->getGlobal());
|
||||||
|
cerr << '>';
|
||||||
if (offset > 0)
|
if (offset > 0)
|
||||||
cerr << " + " << offset;
|
cerr << " + " << offset;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user