Skip to content

Commit 2e6d49d

Browse files
author
Robin Kruppe
committed
Pass new argument ExportSymbol to DIBuilder::createNameSpace
1 parent 29abe6f commit 2e6d49d

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)