diff options
| author | Jakub Staszak <kubastaszak@gmail.com> | 2012-11-21 00:50:57 +0000 |
|---|---|---|
| committer | Jakub Staszak <kubastaszak@gmail.com> | 2012-11-21 00:50:57 +0000 |
| commit | 6f58ce16782e384c7d74c3d2a5af43d110016d9e (patch) | |
| tree | 2824ccb42b2e51a2b5d0245c11a2a9f37512a732 /llvm/lib | |
| parent | 92331fde8c5d0b22eed3963380af3f63335dc58e (diff) | |
| download | bcm5719-llvm-6f58ce16782e384c7d74c3d2a5af43d110016d9e.tar.gz bcm5719-llvm-6f58ce16782e384c7d74c3d2a5af43d110016d9e.zip | |
Make isScratchReg and isFPCopy methods static.
llvm-svn: 168407
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/X86/X86FloatingPoint.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86FloatingPoint.cpp b/llvm/lib/Target/X86/X86FloatingPoint.cpp index a3840f58bcb..193d4f5da82 100644 --- a/llvm/lib/Target/X86/X86FloatingPoint.cpp +++ b/llvm/lib/Target/X86/X86FloatingPoint.cpp @@ -206,7 +206,7 @@ namespace { } /// isScratchReg - Returns trus if RegNo is a scratch FP register. - bool isScratchReg(unsigned RegNo) const { + static bool isScratchReg(unsigned RegNo) { return RegNo > 8 && RegNo < NumFPRegs; } @@ -311,7 +311,7 @@ namespace { void handleSpecialFP(MachineBasicBlock::iterator &I); // Check if a COPY instruction is using FP registers. - bool isFPCopy(MachineInstr *MI) const { + static bool isFPCopy(MachineInstr *MI) { unsigned DstReg = MI->getOperand(0).getReg(); unsigned SrcReg = MI->getOperand(1).getReg(); |

