summaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp b/llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp
new file mode 100644
index 000000000000..3b676ca4c883
--- /dev/null
+++ b/llvm/lib/Target/ARM/ARMMachineFunctionInfo.cpp
@@ -0,0 +1,18 @@
+//===-- ARMMachineFunctionInfo.cpp - ARM machine function info ------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "ARMMachineFunctionInfo.h"
+#include "ARMSubtarget.h"
+
+using namespace llvm;
+
+void ARMFunctionInfo::anchor() {}
+
+ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF)
+ : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
+ hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()) {}