summaryrefslogtreecommitdiff
path: root/contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2015-02-02 20:34:40 +0000
committerDimitry Andric <dim@FreeBSD.org>2015-02-02 20:34:40 +0000
commit0f0f2bfa77cf66f472a3f8fcd61c02c5edc8bc57 (patch)
tree9c796001015fe17ab4322360b2c8a2ba835b9d76 /contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
parent73ee00cef531927e501f431bba76b48bd9edb661 (diff)
Notes
Diffstat (limited to 'contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp')
-rw-r--r--contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp b/contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
index 1557d10238e9..e3f01912b872 100644
--- a/contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
+++ b/contrib/llvm/lib/CodeGen/TargetFrameLoweringImpl.cpp
@@ -42,3 +42,8 @@ int TargetFrameLowering::getFrameIndexReference(const MachineFunction &MF,
FrameReg = RI->getFrameRegister(MF);
return getFrameIndexOffset(MF, FI);
}
+
+bool TargetFrameLowering::needsFrameIndexResolution(
+ const MachineFunction &MF) const {
+ return MF.getFrameInfo()->hasStackObjects();
+}