[Bitcode] Replace hand-coded little endian handling with Endian.h functions.
No functional change intended. llvm-svn: 239944
This commit is contained in:
@@ -2406,10 +2406,7 @@ enum {
|
||||
|
||||
static void WriteInt32ToBuffer(uint32_t Value, SmallVectorImpl<char> &Buffer,
|
||||
uint32_t &Position) {
|
||||
Buffer[Position + 0] = (unsigned char) (Value >> 0);
|
||||
Buffer[Position + 1] = (unsigned char) (Value >> 8);
|
||||
Buffer[Position + 2] = (unsigned char) (Value >> 16);
|
||||
Buffer[Position + 3] = (unsigned char) (Value >> 24);
|
||||
support::endian::write32le(&Buffer[Position], Value);
|
||||
Position += 4;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user