1 //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
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 /// \file
9 //===----------------------------------------------------------------------===//
10 
11 #include "AMDGPUMCAsmInfo.h"
12 
13 using namespace llvm;
14 AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
15   HasSingleParameterDotFile = false;
16   //===------------------------------------------------------------------===//
17   MaxInstLength = 16;
18   SeparatorString = "\n";
19   CommentString = ";";
20   PrivateLabelPrefix = "";
21   InlineAsmStart = ";#ASMSTART";
22   InlineAsmEnd = ";#ASMEND";
23 
24   //===--- Data Emission Directives -------------------------------------===//
25   SunStyleELFSectionSwitchSyntax = true;
26   UsesELFSectionDirectiveForBSS = true;
27 
28   //===--- Global Variable Emission Directives --------------------------===//
29   HasAggressiveSymbolFolding = true;
30   COMMDirectiveAlignmentIsInBytes = false;
31   HasNoDeadStrip = true;
32   WeakRefDirective = ".weakref\t";
33   //===--- Dwarf Emission Directives -----------------------------------===//
34   SupportsDebugInformation = true;
35 }
36 
37 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
38   return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" ||
39          SectionName == ".hsadata_global_program" ||
40          SectionName == ".hsarodata_readonly_agent" ||
41          MCAsmInfo::shouldOmitSectionDirective(SectionName);
42 }
43