/// 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; }
};
Column = 0;
}
+StringRef DiagnosticLocation::getRelativePath() const {
+ return File->getFilename();
+}
+
std::string DiagnosticLocation::getAbsolutePath() const {
StringRef Name = File->getFilename();
if (sys::path::is_absolute(Name))