diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-04 07:34:44 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-08-04 07:34:44 +0000 |
commit | f7d4efb3ed35dd12509c1248aa9b14f02bea87bd (patch) | |
tree | f3d43669b98d9aee44481bb5c522bba64d4330c4 /lib/CodeGen/MachineInstrAnnot.cpp | |
parent | aceb7d8b97d258a6789cd78a5932709d9b6dbe3d (diff) |
Tighten up some whitespace. Include SparcV9TmpInstr.h to pick up
the def. of TmpInstruction, instead of InstrSelection.h, which is
dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15475 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstrAnnot.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstrAnnot.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/CodeGen/MachineInstrAnnot.cpp b/lib/CodeGen/MachineInstrAnnot.cpp index 99f6c76a28..9dd684c1cc 100644 --- a/lib/CodeGen/MachineInstrAnnot.cpp +++ b/lib/CodeGen/MachineInstrAnnot.cpp @@ -13,7 +13,7 @@ //===----------------------------------------------------------------------===// #include "../Target/SparcV9/MachineInstrAnnot.h" -#include "llvm/CodeGen/InstrSelection.h" +#include "../Target/SparcV9/SparcV9TmpInstr.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/Instructions.h" #include "llvm/Type.h" @@ -27,8 +27,7 @@ CallArgsDescriptor::CallArgsDescriptor(CallInst* _callInstr, ? NULL : _callInstr->getCalledValue()), retAddrReg(_retAddrReg), isVarArgs(_isVarArgs), - noPrototype(_noPrototype) -{ + noPrototype(_noPrototype) { unsigned int numArgs = callInstr->getNumOperands(); argInfoVec.reserve(numArgs); assert(callInstr->getOperand(0) == callInstr->getCalledValue() @@ -41,14 +40,10 @@ CallArgsDescriptor::CallArgsDescriptor(CallInst* _callInstr, MachineCodeForInstruction::get(callInstr).setCallArgsDescriptor(this); } - -CallInst* -CallArgsDescriptor::getReturnValue() const -{ +CallInst *CallArgsDescriptor::getReturnValue() const { return (callInstr->getType() == Type::VoidTy? NULL : callInstr); } - // Mechanism to get the descriptor for a CALL MachineInstr. // We get the LLVM CallInstr from the ret. addr. register argument // of the CALL MachineInstr (which is explicit operand #3 for indirect @@ -58,8 +53,7 @@ CallArgsDescriptor::getReturnValue() const // This is roundabout but avoids adding a new map or annotation just // to keep track of CallArgsDescriptors. // -CallArgsDescriptor *CallArgsDescriptor::get(const MachineInstr* MI) -{ +CallArgsDescriptor *CallArgsDescriptor::get(const MachineInstr* MI) { const TmpInstruction* retAddrReg = cast<TmpInstruction>(isa<Function>(MI->getOperand(0).getVRegValue()) ? MI->getImplicitRef(MI->getNumImplicitRefs()-1) |