summaryrefslogtreecommitdiff
path: root/lib/Target/BPF/BPFRegisterInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/BPF/BPFRegisterInfo.cpp')
-rw-r--r--lib/Target/BPF/BPFRegisterInfo.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/BPF/BPFRegisterInfo.cpp b/lib/Target/BPF/BPFRegisterInfo.cpp
index 273843e92701e..6f7067816098f 100644
--- a/lib/Target/BPF/BPFRegisterInfo.cpp
+++ b/lib/Target/BPF/BPFRegisterInfo.cpp
@@ -18,10 +18,10 @@
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/RegisterScavenging.h"
+#include "llvm/CodeGen/TargetFrameLowering.h"
+#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/Support/ErrorHandling.h"
-#include "llvm/Target/TargetFrameLowering.h"
-#include "llvm/Target/TargetInstrInfo.h"
#define GET_REGINFO_TARGET_DESC
#include "BPFGenRegisterInfo.inc"
@@ -45,12 +45,12 @@ BitVector BPFRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
static void WarnSize(int Offset, MachineFunction &MF, DebugLoc& DL)
{
if (Offset <= -512) {
- auto F = MF.getFunction();
- DiagnosticInfoUnsupported DiagStackSize(*F,
+ const Function &F = MF.getFunction();
+ DiagnosticInfoUnsupported DiagStackSize(F,
"Looks like the BPF stack limit of 512 bytes is exceeded. "
"Please move large on stack variables into BPF per-cpu array map.\n",
DL);
- F->getContext().diagnose(DiagStackSize);
+ F.getContext().diagnose(DiagStackSize);
}
}