forked from OSchip/llvm-project
parent
b371e06002
commit
433a9e8244
|
@ -8,18 +8,12 @@
|
||||||
#ifndef LLVM_SYMTAB_VALUE_H
|
#ifndef LLVM_SYMTAB_VALUE_H
|
||||||
#define LLVM_SYMTAB_VALUE_H
|
#define LLVM_SYMTAB_VALUE_H
|
||||||
|
|
||||||
#include "llvm/ConstantPool.h"
|
|
||||||
|
|
||||||
class SymbolTable;
|
class SymbolTable;
|
||||||
class ConstPoolVal;
|
|
||||||
class Value;
|
class Value;
|
||||||
|
|
||||||
class SymTabValue {
|
class SymTabValue {
|
||||||
public:
|
|
||||||
typedef ConstantPool ConstantPoolType;
|
|
||||||
private:
|
private:
|
||||||
SymbolTable *SymTab, *ParentSymTab;
|
SymbolTable *SymTab, *ParentSymTab;
|
||||||
ConstantPool ConstPool; // The constant pool
|
|
||||||
Value *ValueParent;
|
Value *ValueParent;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@ -42,9 +36,6 @@ public:
|
||||||
inline SymbolTable *getSymbolTable() { return SymTab; }
|
inline SymbolTable *getSymbolTable() { return SymTab; }
|
||||||
inline const SymbolTable *getSymbolTable() const { return SymTab; }
|
inline const SymbolTable *getSymbolTable() const { return SymTab; }
|
||||||
|
|
||||||
inline const ConstantPool &getConstantPool() const{ return ConstPool; }
|
|
||||||
inline ConstantPool &getConstantPool() { return ConstPool; }
|
|
||||||
|
|
||||||
// getSymbolTableSure is guaranteed to not return a null pointer, because if
|
// getSymbolTableSure is guaranteed to not return a null pointer, because if
|
||||||
// the method does not already have a symtab, one is created. Use this if
|
// the method does not already have a symtab, one is created. Use this if
|
||||||
// you intend to put something into the symbol table for the method.
|
// you intend to put something into the symbol table for the method.
|
||||||
|
|
Loading…
Reference in New Issue