blob: e2ae79d59ea72f4fa250b2a53e04207b98816c78 [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 Lattner74aae472010-04-08 21:26:26 +000015#include "llvm/MC/MCContext.h"
Chris Lattnerf9f93e42010-01-23 07:21:06 +000016#include "llvm/MC/MCSectionELF.h"
Anton Korobeynikov4403b932009-07-16 13:27:25 +000017using namespace llvm;
18
Benjamin Kramer38e59892010-07-14 22:38:02 +000019SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) {
Anton Korobeynikov70f717f2009-07-16 14:04:22 +000020 PrivateGlobalPrefix = ".L";
21 WeakRefDirective = "\t.weak\t";
Anton Korobeynikov70f717f2009-07-16 14:04:22 +000022 PCSymbol = ".";
Chris Lattnerf9f93e42010-01-23 07:21:06 +000023}
Anton Korobeynikov70f717f2009-07-16 14:04:22 +000024
Chris Lattner74aae472010-04-08 21:26:26 +000025const MCSection *SystemZMCAsmInfo::
26getNonexecutableStackSection(MCContext &Ctx) const{
27 return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
Rafael Espindola3f2d13c2010-11-11 03:40:25 +000028 0, SectionKind::getMetadata());
Anton Korobeynikov4403b932009-07-16 13:27:25 +000029}