X86MCAsmInfo.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //===-- X86MCAsmInfo.h - X86 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 declaration of the X86MCAsmInfo class.
  10. //
  11. //===----------------------------------------------------------------------===//
  12. #ifndef LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCASMINFO_H
  13. #define LLVM_LIB_TARGET_X86_MCTARGETDESC_X86MCASMINFO_H
  14. #include "llvm/MC/MCAsmInfoCOFF.h"
  15. #include "llvm/MC/MCAsmInfoDarwin.h"
  16. #include "llvm/MC/MCAsmInfoELF.h"
  17. namespace llvm {
  18. class Triple;
  19. class X86MCAsmInfoDarwin : public MCAsmInfoDarwin {
  20. virtual void anchor();
  21. public:
  22. explicit X86MCAsmInfoDarwin(const Triple &Triple);
  23. };
  24. struct X86_64MCAsmInfoDarwin : public X86MCAsmInfoDarwin {
  25. explicit X86_64MCAsmInfoDarwin(const Triple &Triple);
  26. const MCExpr *
  27. getExprForPersonalitySymbol(const MCSymbol *Sym, unsigned Encoding,
  28. MCStreamer &Streamer) const override;
  29. };
  30. class X86ELFMCAsmInfo : public MCAsmInfoELF {
  31. void anchor() override;
  32. public:
  33. explicit X86ELFMCAsmInfo(const Triple &Triple);
  34. };
  35. class X86MCAsmInfoMicrosoft : public MCAsmInfoMicrosoft {
  36. void anchor() override;
  37. public:
  38. explicit X86MCAsmInfoMicrosoft(const Triple &Triple);
  39. };
  40. class X86MCAsmInfoMicrosoftMASM : public X86MCAsmInfoMicrosoft {
  41. void anchor() override;
  42. public:
  43. explicit X86MCAsmInfoMicrosoftMASM(const Triple &Triple);
  44. };
  45. class X86MCAsmInfoGNUCOFF : public MCAsmInfoGNUCOFF {
  46. void anchor() override;
  47. public:
  48. explicit X86MCAsmInfoGNUCOFF(const Triple &Triple);
  49. };
  50. } // namespace llvm
  51. #endif