1 //===-- NVPTXMCAsmInfo.h - NVPTX asm properties ----------------*- C++ -*--===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declaration of the NVPTXMCAsmInfo class.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
15 #define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
17 #include "llvm/MC/MCAsmInfo.h"
23 class NVPTXMCAsmInfo : public MCAsmInfo {
24 virtual void anchor();
27 explicit NVPTXMCAsmInfo(const Triple &TheTriple);
29 /// Return true if the .section directive should be omitted when
30 /// emitting \p SectionName. For example:
32 /// shouldOmitSectionDirective(".text")
34 /// returns false => .section .text,#alloc,#execinstr
35 /// returns true => .text
36 bool shouldOmitSectionDirective(StringRef SectionName) const override {