Set global.params.isOS variables so we do not have to modify dmd frontend to use targetTriple

This commit is contained in:
Alexey Prokhin
2013-07-29 18:49:09 +04:00
parent fb31047dcd
commit 54078eca66
6 changed files with 18 additions and 19 deletions
+1 -9
View File
@@ -1888,16 +1888,8 @@ void FuncDeclaration::semantic3(Scope *sc)
if (cd)
{
if (!global.params.is64bit &&
#if IN_LLVM
global.params.targetTriple.isOSWindows() &&
#else
global.params.isWindows &&
#endif
!isStatic() && !fbody->usesEH()
#if !IN_LLVM
&& !global.params.trace
#endif
)
!isStatic() && !fbody->usesEH() && !global.params.trace)
{
/* The back end uses the "jmonitor" hack for syncing;
* no need to do the sync at this level.