[Flang][Debug] Use pathnames from location of functions
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Wed, 25 Jan 2023 13:37:54 +0000 (13:37 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Wed, 25 Jan 2023 13:49:21 +0000 (13:49 +0000)
commit3af9dfe464446da8e9acea45681df28b18583370
tree45aa56f9a986150b85c3378e1370c1fbf6ea765b
parentb3b1d86137422dbdc9e8626925067f1b50734036
[Flang][Debug] Use pathnames from location of functions

This ensures that functions in included files have the correct path
in their file metadata.

Note: This patch also sets all locations to have the full path names.

Reviewed By: vzakhari, PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D142263
flang/lib/Lower/Bridge.cpp
flang/lib/Optimizer/Transforms/AddDebugFoundation.cpp
flang/test/Transforms/debug-line-table-existing.fir [new file with mode: 0644]
flang/test/Transforms/debug-line-table-inc-file.fir [new file with mode: 0644]
flang/test/Transforms/debug-line-table-inc-same-file.fir [new file with mode: 0644]