mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Print earlyclobber for implicit-defs as well.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84152 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -212,17 +212,17 @@ void MachineOperand::print(raw_ostream &OS, const TargetMachine *TM) const {
|
|||||||
isEarlyClobber()) {
|
isEarlyClobber()) {
|
||||||
OS << '<';
|
OS << '<';
|
||||||
bool NeedComma = false;
|
bool NeedComma = false;
|
||||||
if (isImplicit()) {
|
if (isDef()) {
|
||||||
if (NeedComma) OS << ',';
|
|
||||||
OS << (isDef() ? "imp-def" : "imp-use");
|
|
||||||
NeedComma = true;
|
|
||||||
} else if (isDef()) {
|
|
||||||
if (NeedComma) OS << ',';
|
if (NeedComma) OS << ',';
|
||||||
if (isEarlyClobber())
|
if (isEarlyClobber())
|
||||||
OS << "earlyclobber,";
|
OS << "earlyclobber,";
|
||||||
|
if (isImplicit())
|
||||||
|
OS << "imp-";
|
||||||
OS << "def";
|
OS << "def";
|
||||||
NeedComma = true;
|
NeedComma = true;
|
||||||
}
|
} else if (isImplicit())
|
||||||
|
OS << "imp-use";
|
||||||
|
|
||||||
if (isKill() || isDead() || isUndef()) {
|
if (isKill() || isDead() || isUndef()) {
|
||||||
if (NeedComma) OS << ',';
|
if (NeedComma) OS << ',';
|
||||||
if (isKill()) OS << "kill";
|
if (isKill()) OS << "kill";
|
||||||
|
Reference in New Issue
Block a user