mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
Switch the default DataLayout to be little endian, and make the variable
be BigEndian so the default can continue to be zero-initialized. This is one of the prerequisites to making DataLayout a constant and always available part of every module. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220193 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -179,7 +179,7 @@ void DataLayout::reset(StringRef Desc) {
|
||||
clear();
|
||||
|
||||
LayoutMap = nullptr;
|
||||
LittleEndian = false;
|
||||
BigEndian = false;
|
||||
StackNaturalAlign = 0;
|
||||
ManglingMode = MM_None;
|
||||
|
||||
@ -239,10 +239,10 @@ void DataLayout::parseSpecifier(StringRef Desc) {
|
||||
// FIXME: remove this on LLVM 4.0.
|
||||
break;
|
||||
case 'E':
|
||||
LittleEndian = false;
|
||||
BigEndian = true;
|
||||
break;
|
||||
case 'e':
|
||||
LittleEndian = true;
|
||||
BigEndian = false;
|
||||
break;
|
||||
case 'p': {
|
||||
// Address space.
|
||||
@ -357,7 +357,7 @@ void DataLayout::init(const Module *M) {
|
||||
}
|
||||
|
||||
bool DataLayout::operator==(const DataLayout &Other) const {
|
||||
bool Ret = LittleEndian == Other.LittleEndian &&
|
||||
bool Ret = BigEndian == Other.BigEndian &&
|
||||
StackNaturalAlign == Other.StackNaturalAlign &&
|
||||
ManglingMode == Other.ManglingMode &&
|
||||
LegalIntWidths == Other.LegalIntWidths &&
|
||||
@ -526,7 +526,7 @@ std::string DataLayout::getStringRepresentation() const {
|
||||
std::string Result;
|
||||
raw_string_ostream OS(Result);
|
||||
|
||||
OS << (LittleEndian ? "e" : "E");
|
||||
OS << (BigEndian ? "E" : "e");
|
||||
|
||||
switch (ManglingMode) {
|
||||
case MM_None:
|
||||
|
Reference in New Issue
Block a user