Reapply 91184 with fixes and an addition to the testcase to cover the problem
[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 using namespace llvm;
16
17 SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
18   AlignmentIsInBytes = true;
19
20   PrivateGlobalPrefix = ".L";
21   WeakRefDirective = "\t.weak\t";
22   SetDirective = "\t.set\t";
23   PCSymbol = ".";
24
25   NonexecutableStackDirective = "\t.section\t.note.GNU-stack,\"\",@progbits";
26 }