Remove a bunch of warnings from the CBE generated C code
authorChris Lattner <sabre@nondot.org>
Wed, 10 Sep 2003 20:12:09 +0000 (20:12 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Sep 2003 20:12:09 +0000 (20:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8455 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 921aa3488d9f646cb1211f97f2fe90689399ec7a..f5334d559af627a49977899bb1ef2c4185587922 100644 (file)
@@ -869,12 +869,12 @@ void CWriter::printFunction(Function *F) {
         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!");
       }
index 921aa3488d9f646cb1211f97f2fe90689399ec7a..f5334d559af627a49977899bb1ef2c4185587922 100644 (file)
@@ -869,12 +869,12 @@ void CWriter::printFunction(Function *F) {
         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!");
       }