[llvm-commits] CVS: llvm/lib/CodeGen/DwarfWriter.cpp

Jeff Cohen jeffc at jolt-lang.org
Tue Jan 24 18:40:22 PST 2006



Changes in directory llvm/lib/CodeGen:

DwarfWriter.cpp updated: 1.15 -> 1.16
---
Log message:

Portably cast a pointer to an integer.


---
Diffs of the changes:  (+1 -1)

 DwarfWriter.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/CodeGen/DwarfWriter.cpp
diff -u llvm/lib/CodeGen/DwarfWriter.cpp:1.15 llvm/lib/CodeGen/DwarfWriter.cpp:1.16
--- llvm/lib/CodeGen/DwarfWriter.cpp:1.15	Tue Jan 24 15:26:43 2006
+++ llvm/lib/CodeGen/DwarfWriter.cpp	Tue Jan 24 20:40:10 2006
@@ -645,7 +645,7 @@
 #ifndef NDEBUG
   void DIEAbbrev::print(std::ostream &O) {
     O << "Abbreviation @"
-      << std::hex << (unsigned long)this << std::dec
+      << std::hex << (size_t)this << std::dec
       << "  "
       << TagString(Tag)
       << " "






More information about the llvm-commits mailing list