1 //===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "SystemZMCAsmInfo.h"
11 #include "llvm/MC/MCContext.h"
12 #include "llvm/MC/MCSectionELF.h"
16 SystemZMCAsmInfo::SystemZMCAsmInfo(StringRef TT) {
18 CalleeSaveStackSlotSize = 8;
19 IsLittleEndian = false;
23 PrivateGlobalPrefix = ".L";
24 WeakRefDirective = "\t.weak\t";
25 ZeroDirective = "\t.space\t";
26 Data64bitsDirective = "\t.quad\t";
27 UsesELFSectionDirectiveForBSS = true;
28 SupportsDebugInformation = true;
30 ExceptionsType = ExceptionHandling::DwarfCFI;
34 SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const {
35 return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
36 0, SectionKind::getMetadata());