blob: ba392bb4d558df2c8ae74408d0a7712685d8ba01 [file] [log] [blame]
Chris Lattneraf76e592009-08-22 20:48:53 +00001//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
Anton Korobeynikov4403b932009-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 Lattneraf76e592009-08-22 20:48:53 +000010// This file contains the declarations of the SystemZMCAsmInfo properties.
Anton Korobeynikov4403b932009-07-16 13:27:25 +000011//
12//===----------------------------------------------------------------------===//
13
Chris Lattneraf76e592009-08-22 20:48:53 +000014#include "SystemZMCAsmInfo.h"
Chris Lattnerf9f93e42010-01-23 07:21:06 +000015#include "llvm/MC/MCSectionELF.h"
Anton Korobeynikov4403b932009-07-16 13:27:25 +000016using namespace llvm;
17
Chris Lattner8eeba352010-01-20 06:34:14 +000018SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
Anton Korobeynikov70f717f2009-07-16 14:04:22 +000019 AlignmentIsInBytes = true;
20
Anton Korobeynikov70f717f2009-07-16 14:04:22 +000021 PrivateGlobalPrefix = ".L";
22 WeakRefDirective = "\t.weak\t";
23 SetDirective = "\t.set\t";
24 PCSymbol = ".";
Chris Lattnerf9f93e42010-01-23 07:21:06 +000025}
Anton Korobeynikov70f717f2009-07-16 14:04:22 +000026
Chris Lattnerf9f93e42010-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 Korobeynikov4403b932009-07-16 13:27:25 +000030}