[llvm] r348157 - Fix non-modular build.

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 3 10:07:04 PST 2018


Author: adrian
Date: Mon Dec  3 10:07:03 2018
New Revision: 348157

URL: http://llvm.org/viewvc/llvm-project?rev=348157&view=rev
Log:
Fix non-modular build.

Modified:
    llvm/trunk/include/llvm/IR/DiagnosticInfo.h
    llvm/trunk/lib/IR/DiagnosticInfo.cpp

Modified: llvm/trunk/include/llvm/IR/DiagnosticInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/DiagnosticInfo.h?rev=348157&r1=348156&r2=348157&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/DiagnosticInfo.h (original)
+++ llvm/trunk/include/llvm/IR/DiagnosticInfo.h Mon Dec  3 10:07:03 2018
@@ -353,7 +353,7 @@ public:
   /// Return the full path to the file.
   std::string getAbsolutePath() const;
   /// Return the file name relative to the compilation directory.
-  StringRef getRelativePath() const { return File->getFilename(); }
+  StringRef getRelativePath() const;
   unsigned getLine() const { return Line; }
   unsigned getColumn() const { return Column; }
 };

Modified: llvm/trunk/lib/IR/DiagnosticInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/DiagnosticInfo.cpp?rev=348157&r1=348156&r2=348157&view=diff
==============================================================================
--- llvm/trunk/lib/IR/DiagnosticInfo.cpp (original)
+++ llvm/trunk/lib/IR/DiagnosticInfo.cpp Mon Dec  3 10:07:03 2018
@@ -121,6 +121,10 @@ DiagnosticLocation::DiagnosticLocation(c
   Column = 0;
 }
 
+StringRef DiagnosticLocation::getRelativePath() const {
+  return File->getFilename();
+}
+
 std::string DiagnosticLocation::getAbsolutePath() const {
   StringRef Name = File->getFilename();
   if (sys::path::is_absolute(Name))




More information about the llvm-commits mailing list