mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
Removed redundant global.params.cpu field.
Now that we have global.params.targetTriple, the information is only duplicated.
This commit is contained in:
12
dmd2/mars.h
12
dmd2/mars.h
@@ -147,17 +147,6 @@ typedef ArrayBase<struct Identifier> Identifiers;
|
||||
typedef ArrayBase<char> Strings;
|
||||
|
||||
#if IN_LLVM
|
||||
enum ARCH
|
||||
{
|
||||
ARCHinvalid = llvm::Triple::UnknownArch,
|
||||
ARCHx86 = llvm::Triple::x86,
|
||||
ARCHx86_64 = llvm::Triple::x86_64,
|
||||
ARCHppc = llvm::Triple::ppc,
|
||||
ARCHppc_64 = llvm::Triple::ppc64,
|
||||
ARCHarm = llvm::Triple::arm,
|
||||
ARCHthumb = llvm::Triple::thumb,
|
||||
};
|
||||
|
||||
enum OUTPUTFLAG
|
||||
{
|
||||
OUTPUTFLAGno,
|
||||
@@ -200,7 +189,6 @@ struct Param
|
||||
char optimize; // run optimizer
|
||||
#endif
|
||||
char map; // generate linker .map file
|
||||
ARCH cpu; // target CPU
|
||||
bool is64bit; // generate 64 bit code
|
||||
#if IN_LLVM
|
||||
OS os;
|
||||
|
||||
@@ -2923,8 +2923,11 @@ unsigned TypeBasic::alignsize()
|
||||
#if IN_LLVM
|
||||
unsigned TypeBasic::alignment()
|
||||
{
|
||||
if (global.params.cpu == ARCHx86_64 && (ty == Tfloat80 || ty == Timaginary80))
|
||||
if (global.params.targetTriple.getArch() == llvm::Triple::x86_64 &&
|
||||
(ty == Tfloat80 || ty == Timaginary80))
|
||||
{
|
||||
return 16;
|
||||
}
|
||||
return Type::alignment();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user