2013-10-16 01:34:32 +00:00
|
|
|
//===-- MCAsmInfoELF.cpp - ELF asm properties -------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file defines target asm properties related what form asm statements
|
|
|
|
// should take in general on ELF-based targets
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCAsmInfoELF.h"
|
2014-10-15 15:44:16 +00:00
|
|
|
#include "llvm/MC/MCContext.h"
|
|
|
|
#include "llvm/MC/MCSectionELF.h"
|
|
|
|
#include "llvm/Support/ELF.h"
|
2013-10-16 01:34:32 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
void MCAsmInfoELF::anchor() { }
|
|
|
|
|
2015-05-21 19:20:38 +00:00
|
|
|
MCSection *MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
|
2015-01-29 17:33:21 +00:00
|
|
|
return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS, 0);
|
2014-10-15 15:44:16 +00:00
|
|
|
}
|
|
|
|
|
2013-10-16 01:34:32 +00:00
|
|
|
MCAsmInfoELF::MCAsmInfoELF() {
|
|
|
|
HasIdentDirective = true;
|
|
|
|
WeakRefDirective = "\t.weak\t";
|
2013-12-02 23:39:26 +00:00
|
|
|
PrivateGlobalPrefix = ".L";
|
2014-12-04 00:06:57 +00:00
|
|
|
PrivateLabelPrefix = ".L";
|
2013-10-16 01:34:32 +00:00
|
|
|
}
|