mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-05 09:31:03 +03:00
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:
parent
4515474bc5
commit
c49464a57e
5 changed files with 44 additions and 44 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue