mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
The symbol table just needs a const GlobalValue*, not a non-const one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22377 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
81b6ed7ed1
commit
f0cf1b7e5f
@ -127,9 +127,8 @@ namespace llvm {
|
|||||||
/// added to logical symbol table for the module. This is eventually
|
/// added to logical symbol table for the module. This is eventually
|
||||||
/// turned into a real symbol table in the file.
|
/// turned into a real symbol table in the file.
|
||||||
struct ELFSym {
|
struct ELFSym {
|
||||||
GlobalValue *GV; // The global value this corresponds to.
|
const GlobalValue *GV; // The global value this corresponds to.
|
||||||
//std::string Name; // Name of the symbol.
|
unsigned NameIdx; // Index in .strtab of name, once emitted.
|
||||||
unsigned NameIdx; // Index in .strtab of name, once emitted.
|
|
||||||
uint64_t Value;
|
uint64_t Value;
|
||||||
unsigned Size;
|
unsigned Size;
|
||||||
unsigned char Info;
|
unsigned char Info;
|
||||||
@ -139,8 +138,8 @@ namespace llvm {
|
|||||||
enum { STB_LOCAL = 0, STB_GLOBAL = 1, STB_WEAK = 2 };
|
enum { STB_LOCAL = 0, STB_GLOBAL = 1, STB_WEAK = 2 };
|
||||||
enum { STT_NOTYPE = 0, STT_OBJECT = 1, STT_FUNC = 2, STT_SECTION = 3,
|
enum { STT_NOTYPE = 0, STT_OBJECT = 1, STT_FUNC = 2, STT_SECTION = 3,
|
||||||
STT_FILE = 4 };
|
STT_FILE = 4 };
|
||||||
ELFSym(GlobalValue *gv) : GV(gv), Value(0), Size(0), Info(0),
|
ELFSym(const GlobalValue *gv) : GV(gv), Value(0), Size(0), Info(0),
|
||||||
Other(0), SectionIdx(0) {}
|
Other(0), SectionIdx(0) {}
|
||||||
|
|
||||||
void SetBind(unsigned X) {
|
void SetBind(unsigned X) {
|
||||||
assert(X == (X & 0xF) && "Bind value out of range!");
|
assert(X == (X & 0xF) && "Bind value out of range!");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user