From ff90e627bae22b44b4547189a5cd08f6505c72ff Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 3 Dec 2018 18:07:03 +0000 Subject: Fix non-modular build. llvm-svn: 348157 --- llvm/lib/IR/DiagnosticInfo.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/lib/IR/DiagnosticInfo.cpp') diff --git a/llvm/lib/IR/DiagnosticInfo.cpp b/llvm/lib/IR/DiagnosticInfo.cpp index fc6f5f1c758..3c6665bbcb7 100644 --- a/llvm/lib/IR/DiagnosticInfo.cpp +++ b/llvm/lib/IR/DiagnosticInfo.cpp @@ -121,6 +121,10 @@ DiagnosticLocation::DiagnosticLocation(const DISubprogram *SP) { Column = 0; } +StringRef DiagnosticLocation::getRelativePath() const { + return File->getFilename(); +} + std::string DiagnosticLocation::getAbsolutePath() const { StringRef Name = File->getFilename(); if (sys::path::is_absolute(Name)) -- cgit v1.2.3