summaryrefslogtreecommitdiff
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorJakub Staszak <kubastaszak@gmail.com>2012-11-21 00:50:57 +0000
committerJakub Staszak <kubastaszak@gmail.com>2012-11-21 00:50:57 +0000
commit6f05f21857615fb18c2ce7b14820bcd3b70db1f1 (patch)
tree0ca4f37e67d6e8ab8226bcdd7831866ad630e56a /lib/Target/X86
parent8b4310b8061d3d5ef26a4a313f53804a8ad02fc9 (diff)
downloadllvm-6f05f21857615fb18c2ce7b14820bcd3b70db1f1.tar.gz
llvm-6f05f21857615fb18c2ce7b14820bcd3b70db1f1.tar.bz2
llvm-6f05f21857615fb18c2ce7b14820bcd3b70db1f1.tar.xz
Make isScratchReg and isFPCopy methods static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86FloatingPoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp
index a3840f58bc..193d4f5da8 100644
--- a/lib/Target/X86/X86FloatingPoint.cpp
+++ b/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();