mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Made the following changes:
* ValueHolder became a 3 argument template. This allows for BasicBlock to use the value holder arg as a typesafe parent pointer. * SymTabValue no longer inherits from Value * Method does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Module does not inherit from only SymTabValue. Now it inherits from both STV & Value. * Updated the SymTabValue.h file to reference SymTabValue instead of STDef in several places * Added isArraySelector & isStructSelector to GetElementPtr instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -10,14 +10,14 @@
|
||||
|
||||
#include <vector>
|
||||
#include "llvm/ValueHolder.h"
|
||||
|
||||
class ConstPoolVal;
|
||||
class SymTabValue;
|
||||
class ConstPoolVal;
|
||||
class Type;
|
||||
class Value;
|
||||
|
||||
class ConstantPool {
|
||||
public:
|
||||
typedef ValueHolder<ConstPoolVal, SymTabValue> PlaneType;
|
||||
typedef ValueHolder<ConstPoolVal, SymTabValue, SymTabValue> PlaneType;
|
||||
private:
|
||||
typedef vector<PlaneType*> PlanesType;
|
||||
PlanesType Planes;
|
||||
@@ -30,6 +30,8 @@ public:
|
||||
|
||||
inline SymTabValue *getParent() { return Parent; }
|
||||
inline const SymTabValue *getParent() const { return Parent; }
|
||||
const Value *getParentV() const;
|
||||
Value *getParentV() ;
|
||||
|
||||
void setParent(SymTabValue *STV);
|
||||
|
||||
|
Reference in New Issue
Block a user