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 // This file contains the declarations of the SystemZMCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "SystemZMCAsmInfo.h"
15 #include "llvm/MC/MCSectionELF.h"
18 SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
19 PrivateGlobalPrefix = ".L";
20 WeakRefDirective = "\t.weak\t";
24 MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{
25 return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
26 0, SectionKind::getMetadata(), false, Ctx);