[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp

Misha Brukman brukman at cs.uiuc.edu
Fri Jun 6 04:54:06 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcV9CodeEmitter.cpp updated: 1.16 -> 1.17

---
Log message:

Print address out as hex.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.16 llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.17
--- llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.16	Thu Jun  5 23:41:22 2003
+++ llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp	Fri Jun  6 04:53:28 2003
@@ -449,7 +449,7 @@
             if (ConstantMap.find(C) != ConstantMap.end()) {
               rv = MCE.getConstantPoolEntryAddress(ConstantMap[C]);
             } else {
-              std::cerr << "Constant: 0x" << std::hex << &*C << std::dec
+              std::cerr << "Constant: 0x" << std::hex << (intptr_t)C
                         << ", " << *V << " not found in ConstantMap!\n";
               abort();
             }





More information about the llvm-commits mailing list