Mercurial > projects > ldc
comparison dmd/mars.c @ 741:4ac97ec7c18e
Applied easy part from wilsonk's x86-64 patch in #107
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 30 Oct 2008 11:08:34 +0100 |
parents | eee9efe5b51f |
children | ac39e5449ca5 |
comparison
equal
deleted
inserted
replaced
740:96484f5bf5af | 741:4ac97ec7c18e |
---|---|
849 else if (strcmp(global.params.llvmArch,"x86-64")==0) { | 849 else if (strcmp(global.params.llvmArch,"x86-64")==0) { |
850 VersionCondition::addPredefinedGlobalIdent("X86_64"); | 850 VersionCondition::addPredefinedGlobalIdent("X86_64"); |
851 global.params.isLE = true; | 851 global.params.isLE = true; |
852 global.params.is64bit = true; | 852 global.params.is64bit = true; |
853 global.params.cpu = ARCHx86_64; | 853 global.params.cpu = ARCHx86_64; |
854 if (global.params.useInlineAsm) { | |
855 VersionCondition::addPredefinedGlobalIdent("LLVM_InlineAsm_X86_64"); | |
856 } | |
854 } | 857 } |
855 else if (strcmp(global.params.llvmArch,"ppc32")==0) { | 858 else if (strcmp(global.params.llvmArch,"ppc32")==0) { |
856 VersionCondition::addPredefinedGlobalIdent("PPC"); | 859 VersionCondition::addPredefinedGlobalIdent("PPC"); |
857 global.params.isLE = false; | 860 global.params.isLE = false; |
858 global.params.is64bit = false; | 861 global.params.is64bit = false; |