diff --git a/dmd/mars.h b/dmd/mars.h index ae92eaeb..d4864c23 100644 --- a/dmd/mars.h +++ b/dmd/mars.h @@ -194,7 +194,6 @@ struct Param ARCH cpu; // target CPU OS os; // target OS bool is64bit; // generate 64 bit code - bool isLE; // generate little endian code bool useDeprecated; // allow use of deprecated features bool useAssert; // generate runtime code for assert()'s bool useInvariants; // generate class invariant checks diff --git a/dmd2/mars.h b/dmd2/mars.h index e4c5b80b..12721330 100644 --- a/dmd2/mars.h +++ b/dmd2/mars.h @@ -201,7 +201,6 @@ struct Param #endif char map; // generate linker .map file ARCH cpu; // target CPU - bool isLE; // generate little endian code bool is64bit; // generate 64 bit code #if IN_LLVM OS os; diff --git a/driver/main.cpp b/driver/main.cpp index 84a91b2d..cc3973c9 100644 --- a/driver/main.cpp +++ b/driver/main.cpp @@ -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(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 {