mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-23 00:03:14 +01:00
DLL linkage is decoupled from linkage in LLVM 3.5.
This commit is contained in:
@@ -494,7 +494,11 @@ bool GarbageCollect2Stack::runOnFunction(Function &F) {
|
||||
// Ignore indirect calls and calls to non-external functions.
|
||||
Function *Callee = CS.getCalledFunction();
|
||||
if (Callee == 0 || !Callee->isDeclaration() ||
|
||||
!(Callee->hasExternalLinkage() || Callee->hasDLLImportLinkage()))
|
||||
!(Callee->hasExternalLinkage()
|
||||
#if LDC_LLVM_VER < 305
|
||||
|| Callee->hasDLLImportLinkage()
|
||||
#endif
|
||||
))
|
||||
continue;
|
||||
|
||||
// Ignore unknown calls.
|
||||
|
||||
Reference in New Issue
Block a user