blob: fcec9cbfdc3cf0fe50525001236c07b9a4291296 [file] [log] [blame]
Tom Stellard75aadc22012-12-11 21:25:42 +00001//===-- 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
13using namespace llvm;
Tom Stellard022802a2014-10-07 21:09:23 +000014AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(StringRef &TT) : MCAsmInfoELF() {
Tom Stellard75aadc22012-12-11 21:25:42 +000015 HasSingleParameterDotFile = false;
Tom Stellard75aadc22012-12-11 21:25:42 +000016 //===------------------------------------------------------------------===//
17 HasSubsectionsViaSymbols = true;
18 HasMachoZeroFillDirective = false;
19 HasMachoTBSSDirective = false;
20 HasStaticCtorDtorReferenceInStaticMode = false;
21 LinkerRequiresNonEmptyDwarfLines = true;
22 MaxInstLength = 16;
Tom Stellard75aadc22012-12-11 21:25:42 +000023 SeparatorString = "\n";
Tom Stellard75aadc22012-12-11 21:25:42 +000024 CommentString = ";";
25 LabelSuffix = ":";
Tom Stellard75aadc22012-12-11 21:25:42 +000026 InlineAsmStart = ";#ASMSTART";
27 InlineAsmEnd = ";#ASMEND";
28 AssemblerDialect = 0;
Tom Stellard75aadc22012-12-11 21:25:42 +000029
30 //===--- Data Emission Directives -------------------------------------===//
31 ZeroDirective = ".zero";
32 AsciiDirective = ".ascii\t";
33 AscizDirective = ".asciz\t";
34 Data8bitsDirective = ".byte\t";
35 Data16bitsDirective = ".short\t";
36 Data32bitsDirective = ".long\t";
37 Data64bitsDirective = ".quad\t";
Craig Topper062a2ba2014-04-25 05:30:21 +000038 GPRel32Directive = nullptr;
Tom Stellard75aadc22012-12-11 21:25:42 +000039 SunStyleELFSectionSwitchSyntax = true;
40 UsesELFSectionDirectiveForBSS = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000041
42 //===--- Alignment Information ----------------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000043 AlignmentIsInBytes = true;
44 TextAlignFillValue = 0;
45
46 //===--- Global Variable Emission Directives --------------------------===//
47 GlobalDirective = ".global";
Tom Stellard75aadc22012-12-11 21:25:42 +000048 HasSetDirective = false;
49 HasAggressiveSymbolFolding = true;
50 COMMDirectiveAlignmentIsInBytes = false;
51 HasDotTypeDotSizeDirective = false;
52 HasNoDeadStrip = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000053 WeakRefDirective = ".weakref\t";
Tom Stellard75aadc22012-12-11 21:25:42 +000054 //===--- Dwarf Emission Directives -----------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +000055 SupportsDebugInformation = true;
Tom Stellard75aadc22012-12-11 21:25:42 +000056}
57
Tom Stellard75aadc22012-12-11 21:25:42 +000058const MCSection*
59AMDGPUMCAsmInfo::getNonexecutableStackSection(MCContext &CTX) const {
Craig Topper062a2ba2014-04-25 05:30:21 +000060 return nullptr;
Tom Stellard75aadc22012-12-11 21:25:42 +000061}