Skip to content

Commit 2217bd7

Browse files
authored
Auto merge of #38000 - rkruppe:llvm-dinamespace-fwdcompat, r=alexcrichton
[LLVM 4.0] Pass new argument ExportSymbol to DIBuilder::createNameSpace cc #37609
2 parents dad5cde + 2e6d49d commit 2217bd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/rustllvm/RustWrapper.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,11 @@ extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreateNameSpace(
747747
unwrapDI<DIDescriptor>(Scope),
748748
Name,
749749
unwrapDI<DIFile>(File),
750-
LineNo));
750+
LineNo
751+
#if LLVM_VERSION_GE(4, 0)
752+
, false // ExportSymbols (only relevant for C++ anonymous namespaces)
753+
#endif
754+
));
751755
}
752756

753757
extern "C" void LLVMRustDICompositeTypeSetTypeArray(

0 commit comments

Comments
 (0)