mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-17 12:23:14 +01:00
Remove global.params.isLE.
This commit is contained in:
@@ -588,7 +588,6 @@ int main(int argc, char** argv)
|
||||
gDataLayout = target->getTargetData();
|
||||
#endif
|
||||
|
||||
global.params.isLE = gDataLayout->isLittleEndian();
|
||||
// Starting with LLVM 3.1 we could also use global.params.targetTriple.isArch64Bit();
|
||||
global.params.is64bit = gDataLayout->getPointerSizeInBits(ADDRESS_SPACE) == 64;
|
||||
global.params.cpu = static_cast<ARCH>(global.params.targetTriple.getArch());
|
||||
@@ -656,7 +655,7 @@ int main(int argc, char** argv)
|
||||
}
|
||||
|
||||
// endianness
|
||||
if (global.params.isLE) {
|
||||
if (gDataLayout->isLittleEndian()) {
|
||||
VersionCondition::addPredefinedGlobalIdent("LittleEndian");
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user