106f32e7eSjoerg //===-- ARMMachineFunctionInfo.cpp - ARM machine function info ------------===//
206f32e7eSjoerg //
306f32e7eSjoerg // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
406f32e7eSjoerg // See https://llvm.org/LICENSE.txt for license information.
506f32e7eSjoerg // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
606f32e7eSjoerg //
706f32e7eSjoerg //===----------------------------------------------------------------------===//
806f32e7eSjoerg 
906f32e7eSjoerg #include "ARMMachineFunctionInfo.h"
1006f32e7eSjoerg #include "ARMSubtarget.h"
1106f32e7eSjoerg 
1206f32e7eSjoerg using namespace llvm;
1306f32e7eSjoerg 
anchor()1406f32e7eSjoerg void ARMFunctionInfo::anchor() {}
1506f32e7eSjoerg 
ARMFunctionInfo(MachineFunction & MF)1606f32e7eSjoerg ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF)
1706f32e7eSjoerg     : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
18*da58b97aSjoerg       hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()),
19*da58b97aSjoerg       IsCmseNSEntry(MF.getFunction().hasFnAttribute("cmse_nonsecure_entry")),
20*da58b97aSjoerg       IsCmseNSCall(MF.getFunction().hasFnAttribute("cmse_nonsecure_call")) {}
21