Skip to content

Commit

Permalink
rustllvm: adjust usage of createNameSpace
Browse files Browse the repository at this point in the history
  • Loading branch information
TimNN committed Jul 21, 2017
1 parent 5f9e432 commit 48424c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rustllvm/RustWrapper.cpp
Expand Up @@ -753,7 +753,11 @@ LLVMRustDIBuilderCreateNameSpace(LLVMRustDIBuilderRef Builder,
LLVMMetadataRef Scope, const char *Name,
LLVMMetadataRef File, unsigned LineNo) {
return wrap(Builder->createNameSpace(
unwrapDI<DIDescriptor>(Scope), Name, unwrapDI<DIFile>(File), LineNo
unwrapDI<DIDescriptor>(Scope), Name
#if LLVM_VERSION_LT(5, 0)
,
unwrapDI<DIFile>(File), LineNo
#endif
#if LLVM_VERSION_GE(4, 0)
,
false // ExportSymbols (only relevant for C++ anonymous namespaces)
Expand Down

0 comments on commit 48424c9

Please sign in to comment.