mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +03:00
Win32: Remove extra leading underscore from D symbol mangling
This is compatible with DMD.
This commit is contained in:
parent
f56bbf4d7b
commit
0b28925e9a
13 changed files with 51 additions and 56 deletions
|
@ -542,11 +542,11 @@ void addCoverageAnalysis(Module *m) {
|
|||
{
|
||||
IF_LOG Logger::println("Build Coverage Analysis constructor: %s", ctorname);
|
||||
|
||||
LLFunctionType *ctorTy = LLFunctionType::get(
|
||||
LLType::getVoidTy(gIR->context()), std::vector<LLType *>(), false);
|
||||
LLFunctionType *ctorTy =
|
||||
LLFunctionType::get(LLType::getVoidTy(gIR->context()), {}, false);
|
||||
ctor = LLFunction::Create(ctorTy, LLGlobalValue::InternalLinkage, ctorname,
|
||||
&gIR->module);
|
||||
ctor->setCallingConv(gABI->callingConv(ctor->getFunctionType(), LINKd));
|
||||
ctor->setCallingConv(gABI->callingConv(LINKd));
|
||||
// Set function attributes. See functions.cpp:DtoDefineFunction()
|
||||
if (global.params.targetTriple->getArch() == llvm::Triple::x86_64) {
|
||||
ctor->addFnAttr(LLAttribute::UWTable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue