diff options
author | Chris Lattner <sabre@nondot.org> | 2003-09-10 20:12:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-09-10 20:12:09 +0000 |
commit | d0b52cf3e744356d0242b55e94e10889dd79947f (patch) | |
tree | 2c2e92e7fa433f7ddfda178155b6f9510e790987 /lib | |
parent | 4b2a71d6219b97b5f816150c8c72d0d593d5d624 (diff) | |
download | external_llvm-d0b52cf3e744356d0242b55e94e10889dd79947f.zip external_llvm-d0b52cf3e744356d0242b55e94e10889dd79947f.tar.gz external_llvm-d0b52cf3e744356d0242b55e94e10889dd79947f.tar.bz2 |
Remove a bunch of warnings from the CBE generated C code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8455 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 4 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 921aa34..f5334d5 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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!"); } diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 921aa34..f5334d5 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -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!"); } |