2009-08-22 22:48:53 +02:00
|
|
|
//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
|
2009-07-16 15:27:25 +02:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-08-22 22:48:53 +02:00
|
|
|
// This file contains the declarations of the SystemZMCAsmInfo properties.
|
2009-07-16 15:27:25 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-22 22:48:53 +02:00
|
|
|
#include "SystemZMCAsmInfo.h"
|
2010-01-23 08:21:06 +01:00
|
|
|
#include "llvm/MC/MCSectionELF.h"
|
2009-07-16 15:27:25 +02:00
|
|
|
using namespace llvm;
|
|
|
|
|
2010-01-20 07:34:14 +01:00
|
|
|
SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, const StringRef &TT) {
|
2009-07-16 16:04:22 +02:00
|
|
|
AlignmentIsInBytes = true;
|
|
|
|
|
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
|
|
|
SetDirective = "\t.set\t";
|
|
|
|
PCSymbol = ".";
|
2010-01-23 08:21:06 +01:00
|
|
|
}
|
2009-07-16 16:04:22 +02:00
|
|
|
|
2010-01-23 08:21:06 +01:00
|
|
|
MCSection *SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const{
|
|
|
|
return MCSectionELF::Create(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
|
|
|
|
0, SectionKind::getMetadata(), false, Ctx);
|
2009-07-16 15:27:25 +02:00
|
|
|
}
|