2009-08-22 20:48:53 +00:00
|
|
|
//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
|
2009-07-16 13:27:25 +00: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 20:48:53 +00:00
|
|
|
// This file contains the declarations of the SystemZMCAsmInfo properties.
|
2009-07-16 13:27:25 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-22 20:48:53 +00:00
|
|
|
#include "SystemZMCAsmInfo.h"
|
2010-04-08 21:26:26 +00:00
|
|
|
#include "llvm/MC/MCContext.h"
|
2010-01-23 07:21:06 +00:00
|
|
|
#include "llvm/MC/MCSectionELF.h"
|
2009-07-16 13:27:25 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2010-07-14 22:38:02 +00:00
|
|
|
SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) {
|
2009-07-16 14:04:22 +00:00
|
|
|
PrivateGlobalPrefix = ".L";
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
|
|
|
PCSymbol = ".";
|
2010-01-23 07:21:06 +00:00
|
|
|
}
|
2009-07-16 14:04:22 +00:00
|
|
|
|
2010-04-08 21:26:26 +00:00
|
|
|
const MCSection *SystemZMCAsmInfo::
|
|
|
|
getNonexecutableStackSection(MCContext &Ctx) const{
|
|
|
|
return Ctx.getELFSection(".note.GNU-stack", MCSectionELF::SHT_PROGBITS,
|
2010-11-11 03:40:25 +00:00
|
|
|
0, SectionKind::getMetadata());
|
2009-07-16 13:27:25 +00:00
|
|
|
}
|