diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-07-08 23:30:59 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-07-08 23:30:59 +0000 |
commit | 3bb830d33736342e8c4c1c25829c187d37ba41d4 (patch) | |
tree | bcd87e8f3a6d5dc21e95de2dd8e65e30a7b4938f /llvm/lib/Target/Sparc/EmitAssembly.cpp | |
parent | 82190d3e730595ea714960fe1eb5a2e5813fd06d (diff) | |
download | bcm5719-llvm-3bb830d33736342e8c4c1c25829c187d37ba41d4.tar.gz bcm5719-llvm-3bb830d33736342e8c4c1c25829c187d37ba41d4.zip |
BA no longer has the unused CC operand.
llvm-svn: 2837
Diffstat (limited to 'llvm/lib/Target/Sparc/EmitAssembly.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/EmitAssembly.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp index b0eb21eab62..b8f5b94d299 100644 --- a/llvm/lib/Target/Sparc/EmitAssembly.cpp +++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp @@ -13,6 +13,7 @@ #include "SparcInternals.h" #include "llvm/CodeGen/MachineInstr.h" +#include "llvm/CodeGen/MachineCodeForBasicBlock.h" #include "llvm/CodeGen/MachineCodeForMethod.h" #include "llvm/GlobalVariable.h" #include "llvm/Constants.h" @@ -229,7 +230,7 @@ private : unsigned getOperandMask(unsigned Opcode) { switch (Opcode) { case SUBcc: return 1 << 3; // Remove CC argument - case BA: return 1 << 0; // Remove Arg #0, which is always null or xcc + //case BA: return 1 << 0; // Remove Arg #0, which is always null or xcc default: return 0; // By default, don't hack operands... } } @@ -375,7 +376,7 @@ SparcFunctionAsmPrinter::emitBasicBlock(const BasicBlock *BB) toAsm << getID(BB) << ":\n"; // Get the vector of machine instructions corresponding to this bb. - const MachineCodeForBasicBlock &MIs = BB->getMachineInstrVec(); + const MachineCodeForBasicBlock &MIs = MachineCodeForBasicBlock::get(BB); MachineCodeForBasicBlock::const_iterator MII = MIs.begin(), MIE = MIs.end(); // Loop over all of the instructions in the basic block... |