forked from OSchip/llvm-project
Have PathDiagnosticPiece::getString() return a StringRef instead
of a std::string. llvm-svn: 163488
This commit is contained in:
parent
9b9ee2a616
commit
deb885a03f
|
@ -335,7 +335,7 @@ protected:
|
|||
public:
|
||||
virtual ~PathDiagnosticPiece();
|
||||
|
||||
const std::string& getString() const { return str; }
|
||||
llvm::StringRef getString() const { return str; }
|
||||
|
||||
/// getDisplayHint - Return a hint indicating where the diagnostic should
|
||||
/// be displayed by the PathDiagnosticConsumer.
|
||||
|
|
Loading…
Reference in New Issue