OSX: Make sure T.mangleof matches the final mangle for C++ symbols

By using upstream's Target.prefixName(), which prepends an additional
underscore on OSX/Darwin for C++ symbols.
We then need to prevent LLVM from implicitly prepending a third one.
This commit is contained in:
Martin 2017-09-28 00:58:31 +02:00
parent 4515474bc5
commit c49464a57e
5 changed files with 44 additions and 44 deletions

View file

@ -226,7 +226,7 @@ Expression *Target::paintAsType(Expression *e, Type *type) {
break;
default:
assert(0);
llvm_unreachable("Unsupported source type");
}
switch (type->ty) {
@ -245,21 +245,6 @@ Expression *Target::paintAsType(Expression *e, Type *type) {
return createRealExp(e->loc, u.float64value, type);
default:
assert(0);
llvm_unreachable("Unsupported target type");
}
return nullptr; // avoid warning
}
/******************************
* For the given module, perform any post parsing analysis.
* Certain compiler backends (ie: GDC) have special placeholder
* modules whose source are empty, but code gets injected
* immediately after loading.
*/
void Target::loadModule(Module *m) {}
/******************************
*
*/
void Target::prefixName(OutBuffer *buf, LINK linkage) {}