1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

The symbol table just needs a const GlobalValue*, not a non-const one.

llvm-svn: 22377
This commit is contained in:
Chris Lattner 2005-07-11 06:16:24 +00:00
parent a556fc183f
commit 3efcbfbfc7

View File

@ -127,8 +127,7 @@ namespace llvm {
/// added to logical symbol table for the module. This is eventually
/// turned into a real symbol table in the file.
struct ELFSym {
GlobalValue *GV; // The global value this corresponds to.
//std::string Name; // Name of the symbol.
const GlobalValue *GV; // The global value this corresponds to.
unsigned NameIdx; // Index in .strtab of name, once emitted.
uint64_t Value;
unsigned Size;
@ -139,7 +138,7 @@ namespace llvm {
enum { STB_LOCAL = 0, STB_GLOBAL = 1, STB_WEAK = 2 };
enum { STT_NOTYPE = 0, STT_OBJECT = 1, STT_FUNC = 2, STT_SECTION = 3,
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) {}
void SetBind(unsigned X) {