formatting cleanups

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29396 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-07-28 22:07:54 +00:00
parent 252ad03d7d
commit c847f7caec

View File

@ -131,7 +131,7 @@ inline void BytecodeWriter::output_vbr(int i) {
inline void BytecodeWriter::output(const std::string &s) { inline void BytecodeWriter::output(const std::string &s) {
unsigned Len = s.length(); unsigned Len = s.length();
output_vbr(Len ); // Strings may have an arbitrary length... output_vbr(Len); // Strings may have an arbitrary length.
Out.insert(Out.end(), s.begin(), s.end()); Out.insert(Out.end(), s.begin(), s.end());
} }
@ -143,7 +143,7 @@ inline void BytecodeWriter::output_float(float& FloatVal) {
/// FIXME: This isn't optimal, it has size problems on some platforms /// FIXME: This isn't optimal, it has size problems on some platforms
/// where FP is not IEEE. /// where FP is not IEEE.
uint32_t i = FloatToBits(FloatVal); uint32_t i = FloatToBits(FloatVal);
Out.push_back( static_cast<unsigned char>( (i & 0xFF ))); Out.push_back( static_cast<unsigned char>( (i ) & 0xFF));
Out.push_back( static_cast<unsigned char>( (i >> 8 ) & 0xFF)); Out.push_back( static_cast<unsigned char>( (i >> 8 ) & 0xFF));
Out.push_back( static_cast<unsigned char>( (i >> 16) & 0xFF)); Out.push_back( static_cast<unsigned char>( (i >> 16) & 0xFF));
Out.push_back( static_cast<unsigned char>( (i >> 24) & 0xFF)); Out.push_back( static_cast<unsigned char>( (i >> 24) & 0xFF));
@ -153,7 +153,7 @@ inline void BytecodeWriter::output_double(double& DoubleVal) {
/// FIXME: This isn't optimal, it has size problems on some platforms /// FIXME: This isn't optimal, it has size problems on some platforms
/// where FP is not IEEE. /// where FP is not IEEE.
uint64_t i = DoubleToBits(DoubleVal); uint64_t i = DoubleToBits(DoubleVal);
Out.push_back( static_cast<unsigned char>( (i & 0xFF ))); Out.push_back( static_cast<unsigned char>( (i ) & 0xFF));
Out.push_back( static_cast<unsigned char>( (i >> 8 ) & 0xFF)); Out.push_back( static_cast<unsigned char>( (i >> 8 ) & 0xFF));
Out.push_back( static_cast<unsigned char>( (i >> 16) & 0xFF)); Out.push_back( static_cast<unsigned char>( (i >> 16) & 0xFF));
Out.push_back( static_cast<unsigned char>( (i >> 24) & 0xFF)); Out.push_back( static_cast<unsigned char>( (i >> 24) & 0xFF));
@ -1271,4 +1271,3 @@ void llvm::WriteBytecodeToFile(const Module *M, std::ostream &Out,
// make sure it hits disk now // make sure it hits disk now
Out.flush(); Out.flush();
} }