Don't print two "0x" prefixes. Use a raw_ostream overload instead of llvm::format.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 30 Aug 2010 14:46:53 +0000 (14:46 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 30 Aug 2010 14:46:53 +0000 (14:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112479 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AliasSetTracker.cpp

index 5a163a2ab0f259a1a8d17bd481db5d1195a86460..e74543bb508aafca3d8168cf02c08e12db699f92 100644 (file)
@@ -22,7 +22,6 @@
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/ErrorHandling.h"
 #include "llvm/Support/InstIterator.h"
-#include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
 
@@ -518,7 +517,7 @@ void AliasSetTracker::copyValue(Value *From, Value *To) {
 //===----------------------------------------------------------------------===//
 
 void AliasSet::print(raw_ostream &OS) const {
-  OS << "  AliasSet[" << format("0x%p", (void*)this) << "," << RefCount << "] ";
+  OS << "  AliasSet[" << (void*)this << ", " << RefCount << "] ";
   OS << (AliasTy == MustAlias ? "must" : "may") << " alias, ";
   switch (AccessTy) {
   case NoModRef: OS << "No access "; break;