mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
[Bitcode] Replace hand-coded little endian handling with Endian.h functions.
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239944 91177308-0d34-0410-b5e6-96231b3b80d8
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