mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
When parsing data layout string looking for endianness, use the correct default
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197771 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ea5893eb2d
commit
8d6a09de7d
@ -63,7 +63,7 @@ Module::~Module() {
|
||||
/// Target endian information.
|
||||
Module::Endianness Module::getEndianness() const {
|
||||
StringRef temp = DataLayout;
|
||||
Module::Endianness ret = AnyEndianness;
|
||||
Module::Endianness ret = BigEndian;
|
||||
|
||||
while (!temp.empty()) {
|
||||
std::pair<StringRef, StringRef> P = getToken(temp, "-");
|
||||
|
Loading…
Reference in New Issue
Block a user