145bb48eaSTom Stellard //===-- MCTargetDesc/AMDGPUMCAsmInfo.cpp - Assembly Info ------------------===//
245bb48eaSTom Stellard //
345bb48eaSTom Stellard //                     The LLVM Compiler Infrastructure
445bb48eaSTom Stellard //
545bb48eaSTom Stellard // This file is distributed under the University of Illinois Open Source
645bb48eaSTom Stellard // License. See LICENSE.TXT for details.
745bb48eaSTom Stellard //
845bb48eaSTom Stellard /// \file
945bb48eaSTom Stellard //===----------------------------------------------------------------------===//
1045bb48eaSTom Stellard 
1145bb48eaSTom Stellard #include "AMDGPUMCAsmInfo.h"
1245bb48eaSTom Stellard 
1345bb48eaSTom Stellard using namespace llvm;
1450f17235SDaniel Sanders AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
1545bb48eaSTom Stellard   HasSingleParameterDotFile = false;
1645bb48eaSTom Stellard   //===------------------------------------------------------------------===//
1745bb48eaSTom Stellard   MaxInstLength = 16;
1845bb48eaSTom Stellard   SeparatorString = "\n";
1945bb48eaSTom Stellard   CommentString = ";";
2045bb48eaSTom Stellard   PrivateLabelPrefix = "";
2145bb48eaSTom Stellard   InlineAsmStart = ";#ASMSTART";
2245bb48eaSTom Stellard   InlineAsmEnd = ";#ASMEND";
2345bb48eaSTom Stellard 
2445bb48eaSTom Stellard   //===--- Data Emission Directives -------------------------------------===//
2545bb48eaSTom Stellard   SunStyleELFSectionSwitchSyntax = true;
2645bb48eaSTom Stellard   UsesELFSectionDirectiveForBSS = true;
2745bb48eaSTom Stellard 
2845bb48eaSTom Stellard   //===--- Global Variable Emission Directives --------------------------===//
2945bb48eaSTom Stellard   HasAggressiveSymbolFolding = true;
3045bb48eaSTom Stellard   COMMDirectiveAlignmentIsInBytes = false;
3145bb48eaSTom Stellard   HasDotTypeDotSizeDirective = false;
3245bb48eaSTom Stellard   HasNoDeadStrip = true;
3345bb48eaSTom Stellard   WeakRefDirective = ".weakref\t";
3445bb48eaSTom Stellard   //===--- Dwarf Emission Directives -----------------------------------===//
3545bb48eaSTom Stellard   SupportsDebugInformation = true;
3645bb48eaSTom Stellard }
37e135ffd5STom Stellard 
38e135ffd5STom Stellard bool AMDGPUMCAsmInfo::shouldOmitSectionDirective(StringRef SectionName) const {
3900f2f91aSTom Stellard   return SectionName == ".hsatext" || SectionName == ".hsadata_global_agent" ||
4000f2f91aSTom Stellard          SectionName == ".hsadata_global_program" ||
41*9760f037STom Stellard          SectionName == ".hsarodata_readonly_agent" ||
42e135ffd5STom Stellard          MCAsmInfo::shouldOmitSectionDirective(SectionName);
43e135ffd5STom Stellard }
44