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 SunStyleELFSectionSwitchSyntax = true;
26 UsesELFSectionDirectiveForBSS = true;
28 //===--- Global Variable Emission Directives --------------------------===//
29 HasAggressiveSymbolFolding = true;
30 COMMDirectiveAlignmentIsInBytes = false;
31 HasDotTypeDotSizeDirective = false;
32 HasNoDeadStrip = true;
33 WeakRefDirective = ".weakref\t";
34 //===--- Dwarf Emission Directives -----------------------------------===//
35 SupportsDebugInformation = true;
38 bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
39 return SectionName == ".hsatext" ||
40 MCAsmInfo::shouldOmitSectionDirective(SectionName);