1 //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #include "AMDGPUMCAsmInfo.h"
14 AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
15 HasSingleParameterDotFile = false;
16 //===------------------------------------------------------------------===//
18 SeparatorString = "\n";
20 PrivateLabelPrefix = "";
21 InlineAsmStart = ";#ASMSTART";
22 InlineAsmEnd = ";#ASMEND";
24 //===--- Data Emission Directives -------------------------------------===//
25 ZeroDirective = ".zero";
26 AsciiDirective = ".ascii\t";
27 AscizDirective = ".asciz\t";
28 Data8bitsDirective = ".byte\t";
29 Data16bitsDirective = ".short\t";
30 Data32bitsDirective = ".long\t";
31 Data64bitsDirective = ".quad\t";
32 SunStyleELFSectionSwitchSyntax = true;
33 UsesELFSectionDirectiveForBSS = true;
35 //===--- Global Variable Emission Directives --------------------------===//
36 HasAggressiveSymbolFolding = true;
37 COMMDirectiveAlignmentIsInBytes = false;
38 HasDotTypeDotSizeDirective = false;
39 HasNoDeadStrip = true;
40 WeakRefDirective = ".weakref\t";
41 //===--- Dwarf Emission Directives -----------------------------------===//
42 SupportsDebugInformation = true;
45 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
46 return SectionName == ".hsatext" ||
47 MCAsmInfo::shouldOmitSectionDirective(SectionName);