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-04-08 23:26:26 +02:00
|
|
|
#include "llvm/MC/MCContext.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-07-15 00:38:02 +02:00
|
|
|
SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) {
|
2009-07-16 16:04:22 +02:00
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
|
|
|
PCSymbol = ".";
|
2010-01-23 08:21:06 +01:00
|
|
|
}
|
2009-07-16 16:04:22 +02:00
|
|
|
|
2010-04-08 23:26:26 +02:00
|
|
|
const MCSection *SystemZMCAsmInfo::
|
|
|
|
getNonexecutableStackSection(MCContext &Ctx) const{
|
|
|
|
return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
|
|
|
|
0, SectionKind::getMetadata(), false);
|
2009-07-16 15:27:25 +02:00
|
|
|
}
|