Mercurial > projects > ldc
comparison gen/main.cpp @ 1033:abfe71f5b911
Switch LLVM_InlineAsm -> D_InlineAsm. It's for real this time, hopefully.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 03 Mar 2009 17:44:56 +0100 |
parents | d1ec9ff0e9ba |
children | 12ea38902e83 |
comparison
equal
deleted
inserted
replaced
1032:85521b52dbf8 | 1033:abfe71f5b911 |
---|---|
411 VersionCondition::addPredefinedGlobalIdent("X86"); | 411 VersionCondition::addPredefinedGlobalIdent("X86"); |
412 global.params.isLE = true; | 412 global.params.isLE = true; |
413 global.params.is64bit = false; | 413 global.params.is64bit = false; |
414 global.params.cpu = ARCHx86; | 414 global.params.cpu = ARCHx86; |
415 if (global.params.useInlineAsm) { | 415 if (global.params.useInlineAsm) { |
416 VersionCondition::addPredefinedGlobalIdent("LLVM_InlineAsm_X86"); | 416 VersionCondition::addPredefinedGlobalIdent("D_InlineAsm_X86"); |
417 } | 417 } |
418 } | 418 } |
419 else if (strcmp(global.params.llvmArch,"x86-64")==0) { | 419 else if (strcmp(global.params.llvmArch,"x86-64")==0) { |
420 VersionCondition::addPredefinedGlobalIdent("X86_64"); | 420 VersionCondition::addPredefinedGlobalIdent("X86_64"); |
421 global.params.isLE = true; | 421 global.params.isLE = true; |
422 global.params.is64bit = true; | 422 global.params.is64bit = true; |
423 global.params.cpu = ARCHx86_64; | 423 global.params.cpu = ARCHx86_64; |
424 if (global.params.useInlineAsm) { | 424 if (global.params.useInlineAsm) { |
425 VersionCondition::addPredefinedGlobalIdent("LLVM_InlineAsm_X86_64"); | 425 VersionCondition::addPredefinedGlobalIdent("D_InlineAsm_X86_64"); |
426 } | 426 } |
427 } | 427 } |
428 else if (strcmp(global.params.llvmArch,"ppc32")==0) { | 428 else if (strcmp(global.params.llvmArch,"ppc32")==0) { |
429 VersionCondition::addPredefinedGlobalIdent("PPC"); | 429 VersionCondition::addPredefinedGlobalIdent("PPC"); |
430 global.params.isLE = false; | 430 global.params.isLE = false; |