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

View File

@@ -160,11 +160,7 @@ char *cpp_mangle(Dsymbol *s)
cms.components.setDim(0);
OutBuffer buf;
#if IN_LLVM
buf.writestring("__Z" + !(global.params.targetTriple.isMacOSX())); // "_Z" for OSX
#else
buf.writestring("__Z" + !global.params.isOSX); // "_Z" for OSX
#endif
cpp_mangle_name(&buf, &cms, s);