40 lines · c
1//===-- NVPTXMCAsmInfo.h - NVPTX 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-exception6//7//===----------------------------------------------------------------------===//8//9// This file contains the declaration of the NVPTXMCAsmInfo class.10//11//===----------------------------------------------------------------------===//12 13#ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H14#define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H15 16#include "llvm/MC/MCAsmInfo.h"17 18namespace llvm {19class Triple;20 21class NVPTXMCAsmInfo : public MCAsmInfo {22public:23 explicit NVPTXMCAsmInfo(const Triple &TheTriple,24 const MCTargetOptions &Options);25 26 /// Return true if the .section directive should be omitted when27 /// emitting \p SectionName. For example:28 ///29 /// shouldOmitSectionDirective(".text")30 ///31 /// returns false => .section .text,#alloc,#execinstr32 /// returns true => .text33 bool shouldOmitSectionDirective(StringRef SectionName) const override {34 return true;35 }36};37} // namespace llvm38 39#endif40