diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-12-03 18:07:03 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-12-03 18:07:03 +0000 |
commit | ff90e627bae22b44b4547189a5cd08f6505c72ff (patch) | |
tree | e99d22d322b40315247f1bc3ab46e341389a0c88 /llvm/lib | |
parent | 64c8a2e31235afacf90f8b8cb5e0f7c25eb2e6c2 (diff) | |
download | bcm5719-llvm-ff90e627bae22b44b4547189a5cd08f6505c72ff.tar.gz bcm5719-llvm-ff90e627bae22b44b4547189a5cd08f6505c72ff.zip |
Fix non-modular build.
llvm-svn: 348157
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/IR/DiagnosticInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |