opnsense-src/contrib/llvm/lib/Target/SystemZ/SystemZMCAsmInfo.cpp

31 lines
1,019 B
C++
Raw Normal View History

2009-10-14 13:57:32 -04:00
//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declarations of the SystemZMCAsmInfo properties.
//
//===----------------------------------------------------------------------===//
#include "SystemZMCAsmInfo.h"
2010-05-04 12:11:02 -04:00
#include "llvm/MC/MCContext.h"
2010-01-23 06:09:33 -05:00
#include "llvm/MC/MCSectionELF.h"
#include "llvm/Support/ELF.h"
2009-10-14 13:57:32 -04:00
using namespace llvm;
2010-07-15 13:06:11 -04:00
SystemZMCAsmInfo::SystemZMCAsmInfo(const Target &T, StringRef TT) {
2009-10-14 13:57:32 -04:00
PrivateGlobalPrefix = ".L";
WeakRefDirective = "\t.weak\t";
PCSymbol = ".";
2010-01-23 06:09:33 -05:00
}
2009-10-14 13:57:32 -04:00
2010-05-04 12:11:02 -04:00
const MCSection *SystemZMCAsmInfo::
getNonexecutableStackSection(MCContext &Ctx) const{
return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
0, SectionKind::getMetadata());
2009-10-14 13:57:32 -04:00
}