blob: 1a0920609b1552e33d703b85914492062b11c96b [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 PrivateGlobalPrefix = ".L";
20 WeakRefDirective = "\t.weak\t";
Anton Korobeynikovfafa2de2009-07-16 14:04:22 +000021 PCSymbol = ".";
Chris Lattner2dc6ddd2010-01-23 07:21:06 +000022}
Anton Korobeynikovfafa2de2009-07-16 14:04:22 +000023
Chris Lattner2dc6ddd2010-01-23 07:21:06 +000024MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{
25 return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
26 0, SectionKind::getMetadata(), false, Ctx);
Anton Korobeynikov32b7d5b2009-07-16 13:27:25 +000027}