]> CyberLeo.Net >> Repos - FreeBSD/releng/9.0.git/blob - contrib/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
[FreeBSD/releng/9.0.git] / contrib / llvm / lib / Target / SystemZ / MCTargetDesc / 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/MCContext.h"
16 #include "llvm/MC/MCSectionELF.h"
17 #include "llvm/Support/ELF.h"
18 using namespace llvm;
19
20 SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) {
21   IsLittleEndian = false;
22   PointerSize = 8;
23   PrivateGlobalPrefix = ".L";
24   WeakRefDirective = "\t.weak\t";
25   PCSymbol = ".";
26 }
27
28 const MCSection *SystemZMCAsmInfo::
29 getNonexecutableStackSection(MCContext &Ctx) const{
30   return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
31                            0, SectionKind::getMetadata());
32 }