parent
							
								
									108d8d46b9
								
							
						
					
					
						commit
						0936089b67
					
				| 
						 | 
					@ -38,7 +38,7 @@ public:
 | 
				
			||||||
  // Specialize setName to handle symbol table majik...
 | 
					  // Specialize setName to handle symbol table majik...
 | 
				
			||||||
  virtual void setName(const string &name, SymbolTable *ST = 0);
 | 
					  virtual void setName(const string &name, SymbolTable *ST = 0);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const = 0;
 | 
					  virtual string getStrValue() const = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Static constructor to get a '0' constant of arbitrary type...
 | 
					  // Static constructor to get a '0' constant of arbitrary type...
 | 
				
			||||||
  static ConstPoolVal *getNullConstant(const Type *Ty);
 | 
					  static ConstPoolVal *getNullConstant(const Type *Ty);
 | 
				
			||||||
| 
						 | 
					@ -74,7 +74,7 @@ public:
 | 
				
			||||||
  // inverted - Return the opposite value of the current value.
 | 
					  // inverted - Return the opposite value of the current value.
 | 
				
			||||||
  inline ConstPoolBool *inverted() const { return (this==True) ? False : True; }
 | 
					  inline ConstPoolBool *inverted() const { return (this==True) ? False : True; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
  inline bool getValue() const { return Val; }
 | 
					  inline bool getValue() const { return Val; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Methods for support type inquiry through isa, cast, and dyn_cast:
 | 
					  // Methods for support type inquiry through isa, cast, and dyn_cast:
 | 
				
			||||||
| 
						 | 
					@ -137,7 +137,7 @@ protected:
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  static ConstPoolSInt *get(const Type *Ty, int64_t V);
 | 
					  static ConstPoolSInt *get(const Type *Ty, int64_t V);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static bool isValueValidForType(const Type *Ty, int64_t V);
 | 
					  static bool isValueValidForType(const Type *Ty, int64_t V);
 | 
				
			||||||
  inline int64_t getValue() const { return Val.Signed; }
 | 
					  inline int64_t getValue() const { return Val.Signed; }
 | 
				
			||||||
| 
						 | 
					@ -161,7 +161,7 @@ protected:
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  static ConstPoolUInt *get(const Type *Ty, uint64_t V);
 | 
					  static ConstPoolUInt *get(const Type *Ty, uint64_t V);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static bool isValueValidForType(const Type *Ty, uint64_t V);
 | 
					  static bool isValueValidForType(const Type *Ty, uint64_t V);
 | 
				
			||||||
  inline uint64_t getValue() const { return Val.Unsigned; }
 | 
					  inline uint64_t getValue() const { return Val.Unsigned; }
 | 
				
			||||||
| 
						 | 
					@ -187,7 +187,7 @@ protected:
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  static ConstPoolFP *get(const Type *Ty, double V);
 | 
					  static ConstPoolFP *get(const Type *Ty, double V);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static bool isValueValidForType(const Type *Ty, double V);
 | 
					  static bool isValueValidForType(const Type *Ty, double V);
 | 
				
			||||||
  inline double getValue() const { return Val; }
 | 
					  inline double getValue() const { return Val; }
 | 
				
			||||||
| 
						 | 
					@ -215,11 +215,8 @@ public:
 | 
				
			||||||
  static ConstPoolArray *get(const ArrayType *T, const vector<ConstPoolVal*> &);
 | 
					  static ConstPoolArray *get(const ArrayType *T, const vector<ConstPoolVal*> &);
 | 
				
			||||||
  static ConstPoolArray *get(const string &Initializer);
 | 
					  static ConstPoolArray *get(const string &Initializer);
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Treat the array as a string if it is an array of ubytes or non-neg sbytes
 | 
					 | 
				
			||||||
  bool isString() const;
 | 
					 | 
				
			||||||
  
 | 
					 | 
				
			||||||
  inline const vector<Use> &getValues() const { return Operands; }
 | 
					  inline const vector<Use> &getValues() const { return Operands; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Methods for support type inquiry through isa, cast, and dyn_cast:
 | 
					  // Methods for support type inquiry through isa, cast, and dyn_cast:
 | 
				
			||||||
| 
						 | 
					@ -245,7 +242,7 @@ public:
 | 
				
			||||||
  static ConstPoolStruct *get(const StructType *T,
 | 
					  static ConstPoolStruct *get(const StructType *T,
 | 
				
			||||||
			      const vector<ConstPoolVal*> &V);
 | 
								      const vector<ConstPoolVal*> &V);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  inline const vector<Use> &getValues() const { return Operands; }
 | 
					  inline const vector<Use> &getValues() const { return Operands; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -271,7 +268,7 @@ protected:
 | 
				
			||||||
  inline ConstPoolPointer(const PointerType *T) : ConstPoolVal((const Type*)T){}
 | 
					  inline ConstPoolPointer(const PointerType *T) : ConstPoolVal((const Type*)T){}
 | 
				
			||||||
  ~ConstPoolPointer() {}
 | 
					  ~ConstPoolPointer() {}
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const = 0;
 | 
					  virtual string getStrValue() const = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Methods for support type inquiry through isa, cast, and dyn_cast:
 | 
					  // Methods for support type inquiry through isa, cast, and dyn_cast:
 | 
				
			||||||
  static inline bool classof(const ConstPoolPointer *) { return true; }
 | 
					  static inline bool classof(const ConstPoolPointer *) { return true; }
 | 
				
			||||||
| 
						 | 
					@ -289,7 +286,7 @@ protected:
 | 
				
			||||||
  inline ConstPoolPointerNull(const PointerType *T) : ConstPoolPointer(T) {}
 | 
					  inline ConstPoolPointerNull(const PointerType *T) : ConstPoolPointer(T) {}
 | 
				
			||||||
  inline ~ConstPoolPointerNull() {}
 | 
					  inline ~ConstPoolPointerNull() {}
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  static ConstPoolPointerNull *get(const PointerType *T);
 | 
					  static ConstPoolPointerNull *get(const PointerType *T);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -322,7 +319,7 @@ protected:
 | 
				
			||||||
public:
 | 
					public:
 | 
				
			||||||
  static ConstPoolPointerRef *get(GlobalValue *GV);
 | 
					  static ConstPoolPointerRef *get(GlobalValue *GV);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  virtual string getStrValue(bool useCSyntax = false) const;
 | 
					  virtual string getStrValue() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const GlobalValue *getValue() const { 
 | 
					  const GlobalValue *getValue() const { 
 | 
				
			||||||
    return cast<GlobalValue>(Operands[0].get());
 | 
					    return cast<GlobalValue>(Operands[0].get());
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue