ba392bb4d558df2c8ae74408d0a7712685d8ba01
[oota-llvm.git] / lib / Target / SystemZ / SystemZMCAsmInfo.cpp
1 //===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
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 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the SystemZMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "SystemZMCAsmInfo.h"
15 #include "llvm/MC/MCSectionELF.h"
16 using namespace llvm;
17
18 SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
19   AlignmentIsInBytes = true;
20
21   PrivateGlobalPrefix = ".L";
22   WeakRefDirective = "\t.weak\t";
23   SetDirective = "\t.set\t";
24   PCSymbol = ".";
25 }
26
27 MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{
28   return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
29                               0, SectionKind::getMetadata(), false, Ctx);
30 }