diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2021-11-19 20:06:13 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2021-11-19 20:06:13 +0000 |
| commit | c0981da47d5696fe36474fcf86b4ce03ae3ff818 (patch) | |
| tree | f42add1021b9f2ac6a69ac7cf6c4499962739a45 /llvm/lib/Target/AVR/AVRMachineFunctionInfo.h | |
| parent | 344a3780b2e33f6ca763666c380202b18aab72a3 (diff) | |
Diffstat (limited to 'llvm/lib/Target/AVR/AVRMachineFunctionInfo.h')
| -rw-r--r-- | llvm/lib/Target/AVR/AVRMachineFunctionInfo.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/llvm/lib/Target/AVR/AVRMachineFunctionInfo.h b/llvm/lib/Target/AVR/AVRMachineFunctionInfo.h index 5432fac122ef..8b1c247eb6a7 100644 --- a/llvm/lib/Target/AVR/AVRMachineFunctionInfo.h +++ b/llvm/lib/Target/AVR/AVRMachineFunctionInfo.h @@ -55,8 +55,10 @@ public: CalleeSavedFrameSize(0), VarArgsFrameIndex(0) { unsigned CallConv = MF.getFunction().getCallingConv(); - this->IsInterruptHandler = CallConv == CallingConv::AVR_INTR || MF.getFunction().hasFnAttribute("interrupt"); - this->IsSignalHandler = CallConv == CallingConv::AVR_SIGNAL || MF.getFunction().hasFnAttribute("signal"); + this->IsInterruptHandler = CallConv == CallingConv::AVR_INTR || + MF.getFunction().hasFnAttribute("interrupt"); + this->IsSignalHandler = CallConv == CallingConv::AVR_SIGNAL || + MF.getFunction().hasFnAttribute("signal"); } bool getHasSpills() const { return HasSpills; } @@ -69,7 +71,9 @@ public: void setHasStackArgs(bool B) { HasStackArgs = B; } /// Checks if the function is some form of interrupt service routine. - bool isInterruptOrSignalHandler() const { return isInterruptHandler() || isSignalHandler(); } + bool isInterruptOrSignalHandler() const { + return isInterruptHandler() || isSignalHandler(); + } bool isInterruptHandler() const { return IsInterruptHandler; } bool isSignalHandler() const { return IsSignalHandler; } @@ -81,6 +85,6 @@ public: void setVarArgsFrameIndex(int Idx) { VarArgsFrameIndex = Idx; } }; -} // end llvm namespace +} // namespace llvm #endif // LLVM_AVR_MACHINE_FUNCTION_INFO_H |
