]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.h
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / llvm / lib / Target / NVPTX / MCTargetDesc / NVPTXMCAsmInfo.h
1 //===-- NVPTXMCAsmInfo.h - NVPTX asm properties ----------------*- C++ -*--===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declaration of the NVPTXMCAsmInfo class.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
15 #define LLVM_LIB_TARGET_NVPTX_MCTARGETDESC_NVPTXMCASMINFO_H
16
17 #include "llvm/MC/MCAsmInfo.h"
18
19 namespace llvm {
20 class Target;
21 class Triple;
22
23 class NVPTXMCAsmInfo : public MCAsmInfo {
24   virtual void anchor();
25
26 public:
27   explicit NVPTXMCAsmInfo(const Triple &TheTriple);
28
29   /// Return true if the .section directive should be omitted when
30   /// emitting \p SectionName.  For example:
31   ///
32   /// shouldOmitSectionDirective(".text")
33   ///
34   /// returns false => .section .text,#alloc,#execinstr
35   /// returns true  => .text
36   bool shouldOmitSectionDirective(StringRef SectionName) const override {
37     return true;
38   }
39 };
40 } // namespace llvm
41
42 #endif