LLVM
22.0.0git
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
#include "
llvm/MC/MCSymbolTableEntry.h
"
13
14
namespace
llvm
{
15
class
MCSymbolELF
:
public
MCSymbol
{
16
friend
class
MCAsmInfoELF
;
17
/// An expression describing how to calculate the size of a symbol. If a
18
/// symbol has no size this field will be NULL.
19
const
MCExpr
*SymbolSize =
nullptr
;
20
21
public
:
22
MCSymbolELF
(
const
MCSymbolTableEntry
*
Name
,
bool
isTemporary
)
23
:
MCSymbol
(
Name
,
isTemporary
) {}
24
void
setSize
(
const
MCExpr
*SS) { SymbolSize = SS; }
25
26
const
MCExpr
*
getSize
()
const
{
return
SymbolSize; }
27
28
void
setVisibility
(
unsigned
Visibility);
29
unsigned
getVisibility
()
const
;
30
31
void
setOther
(
unsigned
Other
);
32
unsigned
getOther
()
const
;
33
34
void
setType
(
unsigned
Type
)
const
;
35
unsigned
getType
()
const
;
36
37
void
setBinding
(
unsigned
Binding
)
const
;
38
unsigned
getBinding
()
const
;
39
40
bool
isBindingSet
()
const
;
41
42
void
setIsWeakref
()
const
;
43
bool
isWeakref
()
const
;
44
45
void
setIsSignature
()
const
;
46
bool
isSignature
()
const
;
47
48
void
setMemtag
(
bool
Tagged);
49
bool
isMemtag
()
const
;
50
51
private
:
52
void
setIsBindingSet()
const
;
53
};
54
}
55
56
#endif
Binding
DXIL Resource Implicit Binding
Definition:
DXILResourceImplicitBinding.cpp:185
Name
std::string Name
Definition:
ELFObjHandler.cpp:77
MCSymbolTableEntry.h
MCSymbol.h
llvm::MCAsmInfoELF
Definition:
MCAsmInfoELF.h:16
llvm::MCExpr
Base class for the full range of assembler expressions which are needed for parsing.
Definition:
MCExpr.h:34
llvm::MCSymbolELF
Definition:
MCSymbolELF.h:15
llvm::MCSymbolELF::isMemtag
bool isMemtag() const
Definition:
MCSymbolELF.cpp:198
llvm::MCSymbolELF::setIsWeakref
void setIsWeakref() const
Definition:
MCSymbolELF.cpp:171
llvm::MCSymbolELF::getOther
unsigned getOther() const
Definition:
MCSymbolELF.cpp:166
llvm::MCSymbolELF::getType
unsigned getType() const
Definition:
MCSymbolELF.cpp:123
llvm::MCSymbolELF::setVisibility
void setVisibility(unsigned Visibility)
Definition:
MCSymbolELF.cpp:145
llvm::MCSymbolELF::setMemtag
void setMemtag(bool Tagged)
Definition:
MCSymbolELF.cpp:202
llvm::MCSymbolELF::setSize
void setSize(const MCExpr *SS)
Definition:
MCSymbolELF.h:24
llvm::MCSymbolELF::isBindingSet
bool isBindingSet() const
Definition:
MCSymbolELF.cpp:194
llvm::MCSymbolELF::setIsSignature
void setIsSignature() const
Definition:
MCSymbolELF.cpp:180
llvm::MCSymbolELF::getSize
const MCExpr * getSize() const
Definition:
MCSymbolELF.h:26
llvm::MCSymbolELF::MCSymbolELF
MCSymbolELF(const MCSymbolTableEntry *Name, bool isTemporary)
Definition:
MCSymbolELF.h:22
llvm::MCSymbolELF::setBinding
void setBinding(unsigned Binding) const
Definition:
MCSymbolELF.cpp:43
llvm::MCSymbolELF::isSignature
bool isSignature() const
Definition:
MCSymbolELF.cpp:185
llvm::MCSymbolELF::getVisibility
unsigned getVisibility() const
Definition:
MCSymbolELF.cpp:153
llvm::MCSymbolELF::getBinding
unsigned getBinding() const
Definition:
MCSymbolELF.cpp:66
llvm::MCSymbolELF::setType
void setType(unsigned Type) const
Definition:
MCSymbolELF.cpp:92
llvm::MCSymbolELF::setOther
void setOther(unsigned Other)
Definition:
MCSymbolELF.cpp:158
llvm::MCSymbolELF::isWeakref
bool isWeakref() const
Definition:
MCSymbolELF.cpp:176
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition:
MCSymbol.h:42
llvm::MCSymbol::isTemporary
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
Definition:
MCSymbol.h:205
llvm::StringMapEntry
StringMapEntry - This is used to represent one value that is inserted into a StringMap.
Definition:
StringMapEntry.h:102
llvm::Type
The instances of the Type class are immutable: once they are created, they are never changed.
Definition:
Type.h:45
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition:
AddressRanges.h:18
llvm::IRMemLocation::Other
@ Other
Any other memory.
Generated on Wed Sep 3 2025 01:32:14 for LLVM by
1.9.6