blob: ba392bb4d558df2c8ae74408d0a7712685d8ba01 [file] [log] [blame]
Chris Lattner621c44d2009-08-22 20:48:53 +00001//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +00002//
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//
Chris Lattner621c44d2009-08-22 20:48:53 +000010// This file contains the declarations of the SystemZMCAsmInfo properties.
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +000011//
12//===----------------------------------------------------------------------===//
13
Chris Lattner621c44d2009-08-22 20:48:53 +000014#include "SystemZMCAsmInfo.h"
Chris Lattner2dc6ddd2010-01-23 07:21:06 +000015#include "llvm/MC/MCSectionELF.h"
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +000016using namespace llvm;
17
Chris Lattner50f82ef2010-01-20 06:34:14 +000018SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
Anton Korobeynikovfafa2de2009-07-16 14:04:22 +000019 AlignmentIsInBytes = true;
20
Anton Korobeynikovfafa2de2009-07-16 14:04:22 +000021 PrivateGlobalPrefix = ".L";
22 WeakRefDirective = "\t.weak\t";
23 SetDirective = "\t.set\t";
24 PCSymbol = ".";
Chris Lattner2dc6ddd2010-01-23 07:21:06 +000025}
Anton Korobeynikovfafa2de2009-07-16 14:04:22 +000026
Chris Lattner2dc6ddd2010-01-23 07:21:06 +000027MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{
28 return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
29 0, SectionKind::getMetadata(), false, Ctx);
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +000030}