xref: /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.h (revision a8197ad3aa952a03fc2aeebc2eafe9bb9de54550)
1 //===-- PPCMCAsmInfo.h - PPC asm properties --------------------*- 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-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file contains the declarations of the PowerPC MCAsmInfo classes.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCASMINFO_H
14 #define LLVM_LIB_TARGET_POWERPC_MCTARGETDESC_PPCMCASMINFO_H
15 
16 #include "llvm/MC/MCAsmInfoDarwin.h"
17 #include "llvm/MC/MCAsmInfoELF.h"
18 #include "llvm/MC/MCAsmInfoXCOFF.h"
19 
20 namespace llvm {
21 class Triple;
22 
23 class PPCMCAsmInfoDarwin : public MCAsmInfoDarwin {
24   virtual void anchor();
25 
26 public:
27   explicit PPCMCAsmInfoDarwin(bool is64Bit, const Triple &);
28 };
29 
30 class PPCELFMCAsmInfo : public MCAsmInfoELF {
31   void anchor() override;
32 
33 public:
34   explicit PPCELFMCAsmInfo(bool is64Bit, const Triple &);
35 };
36 
37 class PPCXCOFFMCAsmInfo : public MCAsmInfoXCOFF {
38   virtual void anchor();
39 
40 public:
41   explicit PPCXCOFFMCAsmInfo(bool is64Bit, const Triple &);
42 };
43 
44 } // namespace llvm
45 
46 #endif
47