From 06bea32e9ec883b454f9fd62a561cd4c18e94645 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 28 Apr 2002 19:20:10 +0000 Subject: [PATCH] Simplify and update code a bit llvm-svn: 2376 --- llvm/lib/Analysis/LiveVar/ValueSet.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/llvm/lib/Analysis/LiveVar/ValueSet.cpp b/llvm/lib/Analysis/LiveVar/ValueSet.cpp index fb691c2ed331..82fccb7e84e6 100644 --- a/llvm/lib/Analysis/LiveVar/ValueSet.cpp +++ b/llvm/lib/Analysis/LiveVar/ValueSet.cpp @@ -2,17 +2,17 @@ #include "llvm/Analysis/LiveVar/ValueSet.h" -#include "llvm/ConstantVals.h" +#include "llvm/Value.h" #include std::ostream &operator<<(std::ostream &O, RAV V) { // func to print a Value const Value *v = V.V; if (v->hasName()) - return O << v << "(" << v->getName() << ") "; - else if (Constant *C = dyn_cast(v)) - return O << v << "(" << C << ") "; + return O << (void*)v << "(" << v->getName() << ") "; + else if (isa(v)) + return O << (void*)v << "(" << v << ") "; else - return O << v << " "; + return O << (void*)v << " "; } void printSet(const ValueSet &S) {