LLVM
9.0.0svn
include
llvm
MC
MCSymbolELF.h
Go to the documentation of this file.
1
//===- MCSymbolELF.h - -----------------------------------------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
#ifndef LLVM_MC_MCSYMBOLELF_H
9
#define LLVM_MC_MCSYMBOLELF_H
10
11
#include "
llvm/MC/MCSymbol.h
"
12
13
namespace
llvm
{
14
class
MCSymbolELF
:
public
MCSymbol
{
15
/// An expression describing how to calculate the size of a symbol. If a
16
/// symbol has no size this field will be NULL.
17
const
MCExpr
*SymbolSize =
nullptr
;
18
19
public
:
20
MCSymbolELF
(
const
StringMapEntry<bool>
*
Name
,
bool
isTemporary
)
21
:
MCSymbol
(
SymbolKindELF
, Name, isTemporary) {}
22
void
setSize
(
const
MCExpr
*SS) { SymbolSize = SS; }
23
24
const
MCExpr
*
getSize
()
const
{
return
SymbolSize; }
25
26
void
setVisibility
(
unsigned
Visibility
);
27
unsigned
getVisibility
()
const
;
28
29
void
setOther
(
unsigned
Other
);
30
unsigned
getOther
()
const
;
31
32
void
setType
(
unsigned
Type
)
const
;
33
unsigned
getType
()
const
;
34
35
void
setBinding
(
unsigned
Binding)
const
;
36
unsigned
getBinding
()
const
;
37
38
bool
isBindingSet
()
const
;
39
40
void
setIsWeakrefUsedInReloc
()
const
;
41
bool
isWeakrefUsedInReloc
()
const
;
42
43
void
setIsSignature
()
const
;
44
bool
isSignature
()
const
;
45
46
static
bool
classof
(
const
MCSymbol
*S) {
return
S->
isELF
(); }
47
48
private
:
49
void
setIsBindingSet()
const
;
50
};
51
}
52
53
#endif
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:23
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition:
StringMap.h:125
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:41
llvm::MCSymbolELF::getVisibility
unsigned getVisibility() const
Definition:
MCSymbolELF.cpp:157
Name
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
Definition:
AMDGPULibCalls.cpp:220
llvm::MCSymbolELF::getBinding
unsigned getBinding() const
Definition:
MCSymbolELF.cpp:66
llvm::MCSymbolELF::setVisibility
void setVisibility(unsigned Visibility)
Definition:
MCSymbolELF.cpp:149
llvm::MCSymbol::SymbolKindELF
Definition:
MCSymbol.h:48
Visibility
ELFYAML::ELF_STV Visibility
Definition:
ELFYAML.cpp:807
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:35
Other
ELFYAML::ELF_STO Other
Definition:
ELFYAML.cpp:808
llvm::MCSymbolELF
Definition:
MCSymbolELF.h:14
llvm::MCSymbolELF::isBindingSet
bool isBindingSet() const
Definition:
MCSymbolELF.cpp:200
llvm::MCSymbolELF::getOther
unsigned getOther() const
Definition:
MCSymbolELF.cpp:172
llvm::MCSymbolELF::setIsSignature
void setIsSignature() const
Definition:
MCSymbolELF.cpp:186
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed...
Definition:
Type.h:45
llvm::MCSymbolELF::setOther
void setOther(unsigned Other)
Definition:
MCSymbolELF.cpp:164
llvm::MCSymbolELF::setSize
void setSize(const MCExpr *SS)
Definition:
MCSymbolELF.h:22
llvm::MCSymbol::isTemporary
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
Definition:
MCSymbol.h:219
llvm::MCSymbolELF::classof
static bool classof(const MCSymbol *S)
Definition:
MCSymbolELF.h:46
llvm::MCSymbolELF::setType
void setType(unsigned Type) const
Definition:
MCSymbolELF.cpp:94
MCSymbol.h
llvm::MCSymbolELF::isWeakrefUsedInReloc
bool isWeakrefUsedInReloc() const
Definition:
MCSymbolELF.cpp:182
llvm::MCSymbolELF::setBinding
void setBinding(unsigned Binding) const
Definition:
MCSymbolELF.cpp:41
llvm::MCSymbolELF::getType
unsigned getType() const
Definition:
MCSymbolELF.cpp:127
llvm::MCSymbolELF::setIsWeakrefUsedInReloc
void setIsWeakrefUsedInReloc() const
Definition:
MCSymbolELF.cpp:177
llvm::MCSymbolELF::isSignature
bool isSignature() const
Definition:
MCSymbolELF.cpp:191
llvm::MCSymbolELF::getSize
const MCExpr * getSize() const
Definition:
MCSymbolELF.h:24
llvm::MCSymbolELF::MCSymbolELF
MCSymbolELF(const StringMapEntry< bool > *Name, bool isTemporary)
Definition:
MCSymbolELF.h:20
llvm::MCSymbol::isELF
bool isELF() const
Definition:
MCSymbol.h:280
Generated on Thu Feb 21 2019 00:33:30 for LLVM by
1.8.13