[Bitcode] Replace hand-coded little endian handling with Endian.h functions.