2015-07-30 00:32:47 +02:00
|
|
|
//===-- ARMMachineFunctionInfo.cpp - ARM machine function info ------------===//
|
2011-12-20 03:50:00 +01:00
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// 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
|
2011-12-20 03:50:00 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "ARMMachineFunctionInfo.h"
|
2017-01-27 00:40:06 +01:00
|
|
|
#include "ARMSubtarget.h"
|
2011-12-20 03:50:00 +01:00
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
2016-10-11 19:38:25 +02:00
|
|
|
void ARMFunctionInfo::anchor() {}
|
2014-06-19 00:48:09 +02:00
|
|
|
|
|
|
|
ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF)
|
2015-02-20 09:24:37 +01:00
|
|
|
: isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()),
|
2020-05-14 17:43:20 +02:00
|
|
|
hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()),
|
|
|
|
IsCmseNSEntry(MF.getFunction().hasFnAttribute("cmse_nonsecure_entry")),
|
|
|
|
IsCmseNSCall(MF.getFunction().hasFnAttribute("cmse_nonsecure_call")) {}
|