diff options
author | Eric Christopher <echristo@apple.com> | 2010-07-20 06:52:21 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-07-20 06:52:21 +0000 |
commit | 72852a8cfb605056d87b644d2e36b1346051413d (patch) | |
tree | 8b5e5b548e73faf5a751d824669390242f01405e /include | |
parent | e8a469cdb400249ec263c79d1021f953f42f2760 (diff) | |
download | external_llvm-72852a8cfb605056d87b644d2e36b1346051413d.zip external_llvm-72852a8cfb605056d87b644d2e36b1346051413d.tar.gz external_llvm-72852a8cfb605056d87b644d2e36b1346051413d.tar.bz2 |
Constify some arguments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108812 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetRegisterInfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index f6ac2b7..3fe1bb1 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -603,7 +603,7 @@ public: /// immediately on entry to the current function. This eliminates the need for /// add/sub sp brackets around call sites. Returns true if the call frame is /// included as part of the stack frame. - virtual bool hasReservedCallFrame(MachineFunction &MF) const { + virtual bool hasReservedCallFrame(const MachineFunction &MF) const { return !hasFP(MF); } @@ -614,7 +614,7 @@ public: /// if the function has a reserved call frame or a frame pointer. Some /// targets (Thumb2, for example) may have more complicated criteria, /// however, and can override this behavior. - virtual bool canSimplifyCallFramePseudos(MachineFunction &MF) const { + virtual bool canSimplifyCallFramePseudos(const MachineFunction &MF) const { return hasReservedCallFrame(MF) || hasFP(MF); } @@ -624,7 +624,7 @@ public: /// reserved as its spill slot. This tells PEI not to create a new stack frame /// object for the given register. It should be called only after /// processFunctionBeforeCalleeSavedScan(). - virtual bool hasReservedSpillSlot(MachineFunction &MF, unsigned Reg, + virtual bool hasReservedSpillSlot(const MachineFunction &MF, unsigned Reg, int &FrameIdx) const { return false; } |