diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-05-25 17:28:35 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-05-25 17:28:35 +0000 |
commit | 15e969a45e510026fc1c6e3125fdd4975c0ec1ce (patch) | |
tree | 90e0d2157d131756265e61cb859cf3cf580d354a /llvm | |
parent | 49ad21ce7b64a99397ba267c6f3a029592a34639 (diff) | |
download | bcm5719-llvm-15e969a45e510026fc1c6e3125fdd4975c0ec1ce.tar.gz bcm5719-llvm-15e969a45e510026fc1c6e3125fdd4975c0ec1ce.zip |
Removed unused, useless header file.
llvm-svn: 13757
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Support/ValueHolder.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/llvm/include/llvm/Support/ValueHolder.h b/llvm/include/llvm/Support/ValueHolder.h deleted file mode 100644 index bab201287eb..00000000000 --- a/llvm/include/llvm/Support/ValueHolder.h +++ /dev/null @@ -1,53 +0,0 @@ -//===-- llvm/Support/ValueHolder.h - Wrapper for Value's --------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This class defines a simple subclass of User, which keeps a pointer to a -// Value, which automatically updates when Value::replaceAllUsesWith is called. -// This is useful when you have pointers to Value's in your pass, but the -// pointers get invalidated when some other portion of the algorithm is -// replacing Values with other Values. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_SUPPORT_VALUEHOLDER_H -#define LLVM_SUPPORT_VALUEHOLDER_H - -#include "llvm/User.h" - -namespace llvm { - -struct ValueHolder : public User { - ValueHolder(Value *V = 0); - ValueHolder(const ValueHolder &VH) : User(VH.getType(), Value::TypeVal) { - Operands.push_back(Use(VH.get(), this)); - } - - // Getters... - Value *get() const { return (Value*)getOperand(0); } - operator Value*() const { return (Value*)getOperand(0); } - - // Setters... - const ValueHolder &operator=(Value *V) { - setOperand(0, V); - return *this; - } - - const ValueHolder &operator=(ValueHolder &VH) { - setOperand(0, VH); - return *this; - } - - virtual void print(std::ostream& OS) const { - OS << "ValueHolder"; - } -}; - -} // End llvm namespace - -#endif |