mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-28 06:24:57 +00:00
simplifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65721 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1650,11 +1650,12 @@ void Type::print(std::ostream &o) const {
|
|||||||
print(OS);
|
print(OS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Type::print(raw_ostream &o) const {
|
void Type::print(raw_ostream &OS) const {
|
||||||
if (this == 0)
|
if (this == 0) {
|
||||||
o << "<null Type>";
|
OS << "<null Type>";
|
||||||
else
|
return;
|
||||||
o << getDescription();
|
}
|
||||||
|
TypePrinting(0, OS).print(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Value::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const {
|
void Value::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const {
|
||||||
@ -1678,8 +1679,9 @@ void Value::print(raw_ostream &OS, AssemblyAnnotationWriter *AAW) const {
|
|||||||
AssemblyWriter W(OS, SlotTable, GV->getParent(), 0);
|
AssemblyWriter W(OS, SlotTable, GV->getParent(), 0);
|
||||||
W.write(GV);
|
W.write(GV);
|
||||||
} else if (const Constant *C = dyn_cast<Constant>(this)) {
|
} else if (const Constant *C = dyn_cast<Constant>(this)) {
|
||||||
OS << C->getType()->getDescription() << ' ';
|
|
||||||
TypePrinting TypePrinter(0, OS);
|
TypePrinting TypePrinter(0, OS);
|
||||||
|
TypePrinter.print(C->getType());
|
||||||
|
OS << ' ';
|
||||||
WriteConstantInt(OS, C, TypePrinter, 0);
|
WriteConstantInt(OS, C, TypePrinter, 0);
|
||||||
} else if (const Argument *A = dyn_cast<Argument>(this)) {
|
} else if (const Argument *A = dyn_cast<Argument>(this)) {
|
||||||
WriteAsOperand(OS, this, true,
|
WriteAsOperand(OS, this, true,
|
||||||
|
Reference in New Issue
Block a user