[llvm-commits] CVS: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp X86IntelAsmPrinter.cpp X86IntelAsmPrinter.h
Chris Lattner
lattner at cs.uiuc.edu
Thu May 4 11:06:05 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86ATTAsmPrinter.cpp updated: 1.41 -> 1.42
X86IntelAsmPrinter.cpp updated: 1.40 -> 1.41
X86IntelAsmPrinter.h updated: 1.20 -> 1.21
---
Log message:
Rename MO_VirtualRegister -> MO_Register. Clean up immediate handling.
---
Diffs of the changes: (+3 -3)
X86ATTAsmPrinter.cpp | 2 +-
X86IntelAsmPrinter.cpp | 2 +-
X86IntelAsmPrinter.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Target/X86/X86ATTAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.41 llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.42
--- llvm/lib/Target/X86/X86ATTAsmPrinter.cpp:1.41 Thu May 4 12:21:20 2006
+++ llvm/lib/Target/X86/X86ATTAsmPrinter.cpp Thu May 4 13:05:43 2006
@@ -108,7 +108,7 @@
const MachineOperand &MO = MI->getOperand(OpNo);
const MRegisterInfo &RI = *TM.getRegisterInfo();
switch (MO.getType()) {
- case MachineOperand::MO_VirtualRegister:
+ case MachineOperand::MO_Register:
assert(MRegisterInfo::isPhysicalRegister(MO.getReg()) &&
"Virtual registers should not make it this far!");
O << '%';
Index: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.40 llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.41
--- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.40 Thu May 4 12:21:20 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.cpp Thu May 4 13:05:43 2006
@@ -100,7 +100,7 @@
const char *Modifier) {
const MRegisterInfo &RI = *TM.getRegisterInfo();
switch (MO.getType()) {
- case MachineOperand::MO_VirtualRegister:
+ case MachineOperand::MO_Register:
if (MRegisterInfo::isPhysicalRegister(MO.getReg()))
O << RI.get(MO.getReg()).Name;
else
Index: llvm/lib/Target/X86/X86IntelAsmPrinter.h
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.h:1.20 llvm/lib/Target/X86/X86IntelAsmPrinter.h:1.21
--- llvm/lib/Target/X86/X86IntelAsmPrinter.h:1.20 Wed May 3 20:15:02 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.h Thu May 4 13:05:43 2006
@@ -37,7 +37,7 @@
void printOperand(const MachineInstr *MI, unsigned OpNo,
const char *Modifier = 0) {
const MachineOperand &MO = MI->getOperand(OpNo);
- if (MO.getType() == MachineOperand::MO_VirtualRegister) {
+ if (MO.isRegister()) {
assert(MRegisterInfo::isPhysicalRegister(MO.getReg()) && "Not physreg??");
O << TM.getRegisterInfo()->get(MO.getReg()).Name;
} else {
More information about the llvm-commits
mailing list