diff options
Diffstat (limited to 'contrib/llvm-project/llvm/tools/llvm-objdump/SourcePrinter.h')
-rw-r--r-- | contrib/llvm-project/llvm/tools/llvm-objdump/SourcePrinter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/tools/llvm-objdump/SourcePrinter.h b/contrib/llvm-project/llvm/tools/llvm-objdump/SourcePrinter.h index 6209bb0e43e4..fc67fc650744 100644 --- a/contrib/llvm-project/llvm/tools/llvm-objdump/SourcePrinter.h +++ b/contrib/llvm-project/llvm/tools/llvm-objdump/SourcePrinter.h @@ -151,6 +151,10 @@ private: StringRef ObjectFilename, StringRef Delimiter, LiveVariablePrinter &LVP); + // Returns line source code corresponding to `LineInfo`. + // Returns empty string if source code cannot be found. + StringRef getLine(const DILineInfo &LineInfo, StringRef ObjectFilename); + public: SourcePrinter() = default; SourcePrinter(const object::ObjectFile *Obj, StringRef DefaultArch); |