summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-07-08 23:30:59 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-07-08 23:30:59 +0000
commitb2debdc5a99603f7a1e3d5e5d59ea6c612be8481 (patch)
treeb54a9e272dc629224d967495cb5c2cd7b3238ac1 /lib
parent6418eac2f14a9163cef29da0293966ca4374f608 (diff)
downloadllvm-b2debdc5a99603f7a1e3d5e5d59ea6c612be8481.tar.gz
llvm-b2debdc5a99603f7a1e3d5e5d59ea6c612be8481.tar.bz2
llvm-b2debdc5a99603f7a1e3d5e5d59ea6c612be8481.tar.xz
BA no longer has the unused CC operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2837 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index b0eb21eab6..b8f5b94d29 100644
--- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
+++ b/lib/Target/SparcV9/SparcV9AsmPrinter.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...