MCSectionDXContainer.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- MCSectionDXContainer.h - DXContainer MC Sections ---------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // This file declares the MCSectionDXContainer class.
  15. //
  16. //===----------------------------------------------------------------------===//
  17. #ifndef LLVM_MC_MCSECTIONDXCONTAINER_H
  18. #define LLVM_MC_MCSECTIONDXCONTAINER_H
  19. #include "llvm/MC/MCSection.h"
  20. #include "llvm/MC/SectionKind.h"
  21. namespace llvm {
  22. class MCSymbol;
  23. class MCSectionDXContainer final : public MCSection {
  24. friend class MCContext;
  25. MCSectionDXContainer(StringRef Name, SectionKind K, MCSymbol *Begin)
  26. : MCSection(SV_DXContainer, Name, K, Begin) {}
  27. public:
  28. void printSwitchToSection(const MCAsmInfo &, const Triple &, raw_ostream &,
  29. const MCExpr *) const override;
  30. bool useCodeAlign() const override { return false; }
  31. bool isVirtualSection() const override { return false; }
  32. };
  33. } // end namespace llvm
  34. #endif // LLVM_MC_MCSECTIONDXCONTAINER_H
  35. #ifdef __GNUC__
  36. #pragma GCC diagnostic pop
  37. #endif