Nick Lewycky | c3890d2 | 2015-07-29 22:32:47 +0000 | [diff] [blame] | 1 | //===-- ARMMachineFunctionInfo.cpp - ARM machine function info ------------===// |
David Blaikie | a379b181 | 2011-12-20 02:50:00 +0000 | [diff] [blame] | 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
David Blaikie | a379b181 | 2011-12-20 02:50:00 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "ARMMachineFunctionInfo.h" |
Eugene Zelenko | e6cf437 | 2017-01-26 23:40:06 +0000 | [diff] [blame] | 10 | #include "ARMSubtarget.h" |
David Blaikie | a379b181 | 2011-12-20 02:50:00 +0000 | [diff] [blame] | 11 | |
| 12 | using namespace llvm; |
| 13 | |
NAKAMURA Takumi | e61de02 | 2016-10-11 17:38:25 +0000 | [diff] [blame] | 14 | void ARMFunctionInfo::anchor() {} |
Eric Christopher | 3d19f13 | 2014-06-18 22:48:09 +0000 | [diff] [blame] | 15 | |
| 16 | ARMFunctionInfo::ARMFunctionInfo(MachineFunction &MF) |
Eric Christopher | 22b2ad2 | 2015-02-20 08:24:37 +0000 | [diff] [blame] | 17 | : isThumb(MF.getSubtarget<ARMSubtarget>().isThumb()), |
Eugene Zelenko | e6cf437 | 2017-01-26 23:40:06 +0000 | [diff] [blame] | 18 | hasThumb2(MF.getSubtarget<ARMSubtarget>().hasThumb2()) {} |