brintos

brintos / llvm-project-archived public Read only

0
0
Text · 993 B · 0245654 Raw
34 lines · c
1//===-- M68kFixupKinds.h - M68k Specific Fixup Entries ----------*- C++ -*-===//2//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-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This file contains M68k specific fixup entries.11///12//===----------------------------------------------------------------------===//13 14#ifndef LLVM_LIB_TARGET_M68k_MCTARGETDESC_M68kFIXUPKINDS_H15#define LLVM_LIB_TARGET_M68k_MCTARGETDESC_M68kFIXUPKINDS_H16 17#include "llvm/MC/MCFixup.h"18 19namespace llvm {20static inline unsigned getFixupKindLog2Size(unsigned Kind) {21  switch (Kind) {22  case FK_Data_1:23    return 0;24  case FK_Data_2:25    return 1;26  case FK_Data_4:27    return 2;28  }29  llvm_unreachable("invalid fixup kind!");30}31} // namespace llvm32 33#endif // LLVM_LIB_TARGET_M68k_MCTARGETDESC_M68kFIXUPKINDS_H34