LLVM
8.0.1
include
llvm
MC
MCSymbolELF.h
Go to the documentation of this file.
1
//===- MCSymbolELF.h - -----------------------------------------*- 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
#ifndef LLVM_MC_MCSYMBOLELF_H
10
#define LLVM_MC_MCSYMBOLELF_H
11
12
#include "
llvm/MC/MCSymbol.h
"
13
14
namespace
llvm
{
15
class
MCSymbolELF
:
public
MCSymbol
{
16
/// An expression describing how to calculate the size of a symbol. If a
17
/// symbol has no size this field will be NULL.
18
const
MCExpr
*SymbolSize =
nullptr
;
19
20
public
:
21
MCSymbolELF
(
const
StringMapEntry<bool>
*
Name
,
bool
isTemporary
)
22
:
MCSymbol
(
SymbolKindELF
, Name, isTemporary) {}
23
void
setSize
(
const
MCExpr
*SS) { SymbolSize = SS; }
24
25
const
MCExpr
*
getSize
()
const
{
return
SymbolSize; }
26
27
void
setVisibility
(
unsigned
Visibility
);
28
unsigned
getVisibility
()
const
;
29
30
void
setOther
(
unsigned
Other
);
31
unsigned
getOther
()
const
;
32
33
void
setType
(
unsigned
Type
)
const
;
34
unsigned
getType
()
const
;
35
36
void
setBinding
(
unsigned
Binding)
const
;
37
unsigned
getBinding
()
const
;
38
39
bool
isBindingSet
()
const
;
40
41
void
setIsWeakrefUsedInReloc
()
const
;
42
bool
isWeakrefUsedInReloc
()
const
;
43
44
void
setIsSignature
()
const
;
45
bool
isSignature
()
const
;
46
47
static
bool
classof
(
const
MCSymbol
*S) {
return
S->
isELF
(); }
48
49
private
:
50
void
setIsBindingSet()
const
;
51
};
52
}
53
54
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:24
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition:
StringMap.h:126
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:42
llvm::MCSymbolELF::getVisibility
unsigned getVisibility() const
Definition:
MCSymbolELF.cpp:158
llvm::MCSymbolELF::getBinding
unsigned getBinding() const
Definition:
MCSymbolELF.cpp:67
llvm::MCSymbolELF::setVisibility
void setVisibility(unsigned Visibility)
Definition:
MCSymbolELF.cpp:150
llvm::MCSymbol::SymbolKindELF
Definition:
MCSymbol.h:49
Visibility
ELFYAML::ELF_STV Visibility
Definition:
ELFYAML.cpp:783
Name
amdgpu Simplify well known AMD library false Value Value const Twine & Name
Definition:
AMDGPULibCalls.cpp:221
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:36
Other
ELFYAML::ELF_STO Other
Definition:
ELFYAML.cpp:784
llvm::MCSymbolELF
Definition:
MCSymbolELF.h:15
llvm::MCSymbolELF::isBindingSet
bool isBindingSet() const
Definition:
MCSymbolELF.cpp:201
llvm::MCSymbolELF::getOther
unsigned getOther() const
Definition:
MCSymbolELF.cpp:173
llvm::MCSymbolELF::setIsSignature
void setIsSignature() const
Definition:
MCSymbolELF.cpp:187
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed...
Definition:
Type.h:46
llvm::MCSymbolELF::setOther
void setOther(unsigned Other)
Definition:
MCSymbolELF.cpp:165
llvm::MCSymbolELF::setSize
void setSize(const MCExpr *SS)
Definition:
MCSymbolELF.h:23
llvm::MCSymbol::isTemporary
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
Definition:
MCSymbol.h:220
llvm::MCSymbolELF::classof
static bool classof(const MCSymbol *S)
Definition:
MCSymbolELF.h:47
llvm::MCSymbolELF::setType
void setType(unsigned Type) const
Definition:
MCSymbolELF.cpp:95
MCSymbol.h
llvm::MCSymbolELF::isWeakrefUsedInReloc
bool isWeakrefUsedInReloc() const
Definition:
MCSymbolELF.cpp:183
llvm::MCSymbolELF::setBinding
void setBinding(unsigned Binding) const
Definition:
MCSymbolELF.cpp:42
llvm::MCSymbolELF::getType
unsigned getType() const
Definition:
MCSymbolELF.cpp:128
llvm::MCSymbolELF::setIsWeakrefUsedInReloc
void setIsWeakrefUsedInReloc() const
Definition:
MCSymbolELF.cpp:178
llvm::MCSymbolELF::isSignature
bool isSignature() const
Definition:
MCSymbolELF.cpp:192
llvm::MCSymbolELF::getSize
const MCExpr * getSize() const
Definition:
MCSymbolELF.h:25
llvm::MCSymbolELF::MCSymbolELF
MCSymbolELF(const StringMapEntry< bool > *Name, bool isTemporary)
Definition:
MCSymbolELF.h:21
llvm::MCSymbol::isELF
bool isELF() const
Definition:
MCSymbol.h:281
Generated on Sun Dec 20 2020 13:53:32 for LLVM by
1.8.13