aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeroen Van den Keybus <jeroen.vandenkeybus@gmail.com>2021-04-26 20:17:40 +0200
committertgingold <tgingold@users.noreply.github.com>2021-04-27 06:08:17 +0200
commit396eb764f49666616063d4239df83b5aed961fff (patch)
tree001ba9e759a4eb59226c253a2a34ebe3d78a9cea /src
parentfcd93aa12cff63570409fbaede572d7eee2e8fa8 (diff)
downloadghdl-396eb764f49666616063d4239df83b5aed961fff.tar.gz
ghdl-396eb764f49666616063d4239df83b5aed961fff.tar.bz2
ghdl-396eb764f49666616063d4239df83b5aed961fff.zip
Migrate deprecated DebugLoc::get to DILocation::get
Diffstat (limited to 'src')
-rw-r--r--src/ortho/llvm6/llvm-cbindings.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ortho/llvm6/llvm-cbindings.cpp b/src/ortho/llvm6/llvm-cbindings.cpp
index f82845ffc..98470d8fa 100644
--- a/src/ortho/llvm6/llvm-cbindings.cpp
+++ b/src/ortho/llvm6/llvm-cbindings.cpp
@@ -1254,7 +1254,7 @@ new_var_decl(ODnode *Res, OIdent Ident, OStorage Storage, OTnode Atype)
DebugCurrentLine, Atype->Dbg, true);
DBuilder->insertDeclare
(unwrap(Decl), D, DBuilder->createExpression(),
- DebugLoc::get(DebugCurrentLine, 0, DebugCurrentScope),
+ DILocation::get(DebugCurrentScope->getContext(), DebugCurrentLine, 0, DebugCurrentScope),
unwrap(LLVMGetInsertBlock(DeclBuilder)));
}
#endif
@@ -1597,7 +1597,7 @@ start_subprogram_body(ODnodeSubprg *Func)
DebugCurrentScope = DebugCurrentSubprg;
unwrap(Builder)->SetCurrentDebugLocation
- (DebugLoc::get(DebugCurrentLine, 0, DebugCurrentScope));
+ (DILocation::get(DebugCurrentScope->getContext(), DebugCurrentLine, 0, DebugCurrentScope));
}
if (FlagDebug) {
@@ -1612,7 +1612,7 @@ start_subprogram_body(ODnodeSubprg *Func)
DebugCurrentFile, DebugCurrentLine, Inter->Dtype->Dbg, true);
DBuilder->insertDeclare
(unwrap(Var), D, DBuilder->createExpression(),
- DebugLoc::get(DebugCurrentLine, 0, DebugCurrentSubprg),
+ DILocation::get(DebugCurrentSubprg->getContext(), DebugCurrentLine, 0, DebugCurrentSubprg),
unwrap(LLVMGetInsertBlock(DeclBuilder)));
LLVMBuildStore(DeclBuilder, Inter->Ref, Var);
Inter->Ref = Var;
@@ -2759,7 +2759,7 @@ new_debug_line_stmt (unsigned Line)
if (FlagDebugLines && Line != DebugCurrentLine) {
DebugCurrentLine = Line;
unwrap(Builder)->SetCurrentDebugLocation
- (DebugLoc::get(DebugCurrentLine, 0, DebugCurrentScope));
+ (DILocation::get(DebugCurrentScope->getContext(), DebugCurrentLine, 0, DebugCurrentScope));
}
#endif
}