]> git.proxmox.com Git - rustc.git/blame - src/llvm/lib/MC/MCAsmInfoELF.cpp
Imported Upstream version 1.0.0+dfsg1
[rustc.git] / src / llvm / lib / MC / MCAsmInfoELF.cpp
CommitLineData
1a4d82fc
JJ
1//===-- MCAsmInfoELF.cpp - ELF asm properties -------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines target asm properties related what form asm statements
11// should take in general on ELF-based targets
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/MC/MCAsmInfoELF.h"
85aaf69f
SL
16#include "llvm/MC/MCContext.h"
17#include "llvm/MC/MCSectionELF.h"
18#include "llvm/Support/ELF.h"
1a4d82fc
JJ
19using namespace llvm;
20
21void MCAsmInfoELF::anchor() { }
22
85aaf69f
SL
23const MCSection *
24MCAsmInfoELF::getNonexecutableStackSection(MCContext &Ctx) const {
25 return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
26 0, SectionKind::getMetadata());
27}
28
1a4d82fc
JJ
29MCAsmInfoELF::MCAsmInfoELF() {
30 HasIdentDirective = true;
31 WeakRefDirective = "\t.weak\t";
32 PrivateGlobalPrefix = ".L";
85aaf69f 33 PrivateLabelPrefix = ".L";
1a4d82fc 34}