[llvm-commits] CVS: llvm/lib/CWriter/Writer.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 10 15:13:05 PDT 2003


Changes in directory llvm/lib/CWriter:

Writer.cpp updated: 1.123 -> 1.124

---
Log message:

Remove a bunch of warnings from the CBE generated C code


---
Diffs of the changes:

Index: llvm/lib/CWriter/Writer.cpp
diff -u llvm/lib/CWriter/Writer.cpp:1.123 llvm/lib/CWriter/Writer.cpp:1.124
--- llvm/lib/CWriter/Writer.cpp:1.123	Wed Sep 10 15:08:00 2003
+++ llvm/lib/CWriter/Writer.cpp	Wed Sep 10 15:12:09 2003
@@ -869,12 +869,12 @@
         if (FPC->getType() == Type::DoubleTy)
           Out << "  const ConstantDoubleTy FloatConstant" << FPCounter++
               << " = 0x" << std::hex << *(unsigned long long*)&Val << std::dec
-              << ";    /* " << Val << " */\n";
+              << "ULL;    /* " << Val << " */\n";
         else if (FPC->getType() == Type::FloatTy) {
           float fVal = Val;
           Out << "  const ConstantFloatTy FloatConstant" << FPCounter++
               << " = 0x" << std::hex << *(unsigned*)&fVal << std::dec
-              << ";    /* " << Val << " */\n";
+              << "U;    /* " << Val << " */\n";
         } else
           assert(0 && "Unknown float type!");
       }





More information about the llvm-commits mailing list