Skip to content

Commit

Permalink
Auto merge of #38000 - rkruppe:llvm-dinamespace-fwdcompat, r=alexcric…
Browse files Browse the repository at this point in the history
…hton

[LLVM 4.0] Pass new argument ExportSymbol to DIBuilder::createNameSpace

cc #37609
  • Loading branch information
bors authored Nov 25, 2016
2 parents dad5cde + 2e6d49d commit 2217bd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rustllvm/RustWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,11 @@ extern "C" LLVMRustMetadataRef LLVMRustDIBuilderCreateNameSpace(
unwrapDI<DIDescriptor>(Scope),
Name,
unwrapDI<DIFile>(File),
LineNo));
LineNo
#if LLVM_VERSION_GE(4, 0)
, false // ExportSymbols (only relevant for C++ anonymous namespaces)
#endif
));
}

extern "C" void LLVMRustDICompositeTypeSetTypeArray(
Expand Down

0 comments on commit 2217bd7

Please sign in to comment.