summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-28 19:20:10 +0000
committerChris Lattner <sabre@nondot.org>2002-04-28 19:20:10 +0000
commitbfeec103e123fd964cafd9f8aa0c1b45e64caa7e (patch)
treee2ecc1a3ab01e6b8fc47f24dfdcc6ffa8383d4a9
parentb9ddce65c281f023780d2b6578e7ed6d2913a2cb (diff)
downloadllvm-bfeec103e123fd964cafd9f8aa0c1b45e64caa7e.tar.gz
llvm-bfeec103e123fd964cafd9f8aa0c1b45e64caa7e.tar.bz2
llvm-bfeec103e123fd964cafd9f8aa0c1b45e64caa7e.tar.xz
Simplify and update code a bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2376 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Analysis/LiveVar/ValueSet.cpp10
-rw-r--r--lib/Target/SparcV9/LiveVar/ValueSet.cpp10
2 files changed, 10 insertions, 10 deletions
diff --git a/lib/Analysis/LiveVar/ValueSet.cpp b/lib/Analysis/LiveVar/ValueSet.cpp
index fb691c2ed3..82fccb7e84 100644
--- a/lib/Analysis/LiveVar/ValueSet.cpp
+++ b/lib/Analysis/LiveVar/ValueSet.cpp
@@ -2,17 +2,17 @@
#include "llvm/Analysis/LiveVar/ValueSet.h"
-#include "llvm/ConstantVals.h"
+#include "llvm/Value.h"
#include <iostream>
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<Constant>(v))
- return O << v << "(" << C << ") ";
+ return O << (void*)v << "(" << v->getName() << ") ";
+ else if (isa<Constant>(v))
+ return O << (void*)v << "(" << v << ") ";
else
- return O << v << " ";
+ return O << (void*)v << " ";
}
void printSet(const ValueSet &S) {
diff --git a/lib/Target/SparcV9/LiveVar/ValueSet.cpp b/lib/Target/SparcV9/LiveVar/ValueSet.cpp
index fb691c2ed3..82fccb7e84 100644
--- a/lib/Target/SparcV9/LiveVar/ValueSet.cpp
+++ b/lib/Target/SparcV9/LiveVar/ValueSet.cpp
@@ -2,17 +2,17 @@
#include "llvm/Analysis/LiveVar/ValueSet.h"
-#include "llvm/ConstantVals.h"
+#include "llvm/Value.h"
#include <iostream>
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<Constant>(v))
- return O << v << "(" << C << ") ";
+ return O << (void*)v << "(" << v->getName() << ") ";
+ else if (isa<Constant>(v))
+ return O << (void*)v << "(" << v << ") ";
else
- return O << v << " ";
+ return O << (void*)v << " ";
}
void printSet(const ValueSet &S) {