[Flang][Debug] Modifications for getting pathname
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 19 Jan 2023 16:49:26 +0000 (16:49 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 19 Jan 2023 16:58:39 +0000 (16:58 +0000)
commiteef0210706bc16ffde17d5b574799d8aae705790
tree448e6d47ec0a26b7ce292341a444dad240102cfa
parenta09b1dc1f2c534cc8b870b5b7c9bc7f7682a1ed5
[Flang][Debug] Modifications for getting pathname

-> Use file pathname from the Flang frontend. It is the frontend
that is in-charge of finding the files and is hence the canonical
source for paths.
-> Convert pathname to absolute pathname while creating the moduleOp.

Co-authored-by: Peter Klausler <pklausler@nvidia.com>
Reviewed By: PeteSteinfeld, vzakhari, jeanPerier, awarzynski

Differential Revision: https://reviews.llvm.org/D141674
flang/include/flang/Lower/Bridge.h
flang/lib/Frontend/FrontendActions.cpp
flang/lib/Lower/Bridge.cpp
flang/test/Lower/module-debug-file-loc-linux.f90 [new file with mode: 0644]
flang/tools/bbc/bbc.cpp