[all-commits] [llvm/llvm-project] 417375: Allow retrieving source files relative to the comp...
Sterling-Augustine via All-commits
all-commits at lists.llvm.org
Tue Feb 11 11:46:35 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 417375d785b865b21ca4dc6cb6d70f833fb196cc
https://github.com/llvm/llvm-project/commit/417375d785b865b21ca4dc6cb6d70f833fb196cc
Author: Sterling Augustine <saugustine at google.com>
Date: 2020-02-11 (Tue, 11 Feb 2020)
Changed paths:
M llvm/include/llvm/DebugInfo/DIContext.h
M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
Log Message:
-----------
Allow retrieving source files relative to the compilation directory.
Summary:
Dwarf stores source-file names the three parts:
<compilation_directory><include_directory><filename>
Prior to this change, the code only allowed retrieving either all
three as the absolute path, or just the filename. But many
compile-command lines--especially those in hermetic build systems
don't specify an absolute path, nor just the filename, but rather the
path relative to the compilation directory. This features allows
retrieving them in that style.
Add tests for path printing styles.
Modify createBasicPrologue to handle include directories.
Subscribers: aprantl, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D73383
More information about the All-commits
mailing list