LLVM
3.7.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
work
release_test
rc4
llvm.src
lib
MC
MCAsmInfoELF.cpp
Go to the documentation of this file.
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
"
16
#include "
llvm/MC/MCContext.h
"
17
#include "
llvm/MC/MCSectionELF.h
"
18
#include "
llvm/Support/ELF.h
"
19
using namespace
llvm;
20
21
void
MCAsmInfoELF::anchor() { }
22
23
MCSection
*MCAsmInfoELF::getNonexecutableStackSection(
MCContext
&Ctx)
const
{
24
return
Ctx.
getELFSection
(
".note.GNU-stack"
,
ELF::SHT_PROGBITS
, 0);
25
}
26
27
MCAsmInfoELF::MCAsmInfoELF
() {
28
HasIdentDirective
=
true
;
29
WeakRefDirective
=
"\t.weak\t"
;
30
PrivateGlobalPrefix
=
".L"
;
31
PrivateLabelPrefix
=
".L"
;
32
}
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit...
Definition:
MCSection.h:48
MCContext.h
llvm::ELF::SHT_PROGBITS
Definition:
Support/ELF.h:615
llvm::MCContext::getELFSection
MCSectionELF * getELFSection(StringRef Section, unsigned Type, unsigned Flags)
Definition:
MCContext.h:311
llvm::MCAsmInfoELF::MCAsmInfoELF
MCAsmInfoELF()
Definition:
MCAsmInfoELF.cpp:27
MCAsmInfoELF.h
llvm::MCAsmInfo::PrivateGlobalPrefix
const char * PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ...
Definition:
MCAsmInfo.h:127
MCSectionELF.h
llvm::MCContext
Context object for machine code objects.
Definition:
MCContext.h:48
llvm::MCAsmInfo::HasIdentDirective
bool HasIdentDirective
True if the target has a .ident directive, this is true for ELF targets.
Definition:
MCAsmInfo.h:277
ELF.h
llvm::MCAsmInfo::WeakRefDirective
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol...
Definition:
MCAsmInfo.h:288
llvm::MCAsmInfo::PrivateLabelPrefix
const char * PrivateLabelPrefix
This prefix is used for labels for basic blocks.
Definition:
MCAsmInfo.h:131
Generated on Mon Aug 31 2015 11:04:04 for LLVM by
1.8.6