summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CWriter/Writer.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-10 20:12:09 +0000
committerChris Lattner <sabre@nondot.org>2003-09-10 20:12:09 +0000
commite7980ae2ee9df6f26af8d7cfe752097051761ace (patch)
treeb915f530f772f9b704656a4105759ac032c88926 /llvm/lib/CWriter/Writer.cpp
parentad3f079976680b3a49fe66fa3ddc2df1fdf0835e (diff)
downloadbcm5719-llvm-e7980ae2ee9df6f26af8d7cfe752097051761ace.tar.gz
bcm5719-llvm-e7980ae2ee9df6f26af8d7cfe752097051761ace.zip
Remove a bunch of warnings from the CBE generated C code
llvm-svn: 8455
Diffstat (limited to 'llvm/lib/CWriter/Writer.cpp')
-rw-r--r--llvm/lib/CWriter/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CWriter/Writer.cpp b/llvm/lib/CWriter/Writer.cpp
index 921aa3488d9..f5334d559af 100644
--- a/llvm/lib/CWriter/Writer.cpp
+++ b/llvm/lib/CWriter/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!");
}
OpenPOWER on IntegriCloud