1 //===- MCSectionSPIRV.h - SPIR-V Machine Code Sections ----------*- 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 declares the MCSectionSPIRV class. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef LLVM_MC_MCSECTIONSPIRV_H 14 #define LLVM_MC_MCSECTIONSPIRV_H 15 16 #include "llvm/MC/MCSection.h" 17 #include "llvm/MC/SectionKind.h" 18 19 namespace llvm { 20 21 class MCSymbol; 22 23 class MCSectionSPIRV final : public MCSection { 24 friend class MCContext; 25 MCSectionSPIRV(SectionKind K,MCSymbol * Begin)26 MCSectionSPIRV(SectionKind K, MCSymbol *Begin) 27 : MCSection(SV_SPIRV, "", K, Begin) {} 28 // TODO: Add StringRef Name to MCSectionSPIRV. 29 30 public: 31 ~MCSectionSPIRV() = default; printSwitchToSection(const MCAsmInfo & MAI,const Triple & T,raw_ostream & OS,const MCExpr * Subsection)32 void printSwitchToSection(const MCAsmInfo &MAI, const Triple &T, 33 raw_ostream &OS, 34 const MCExpr *Subsection) const override {} useCodeAlign()35 bool useCodeAlign() const override { return false; } isVirtualSection()36 bool isVirtualSection() const override { return false; } 37 }; 38 39 } // end namespace llvm 40 41 #endif // LLVM_MC_MCSECTIONSPIRV_H 42