forked from OSchip/llvm-project
[IR] Drop unnecessary const from return types (NFC)
Identified with const-return-type.
This commit is contained in:
parent
50e4e385a4
commit
d29562b29c
|
@ -381,7 +381,7 @@ public:
|
|||
/// Return a string with the location information for this diagnostic
|
||||
/// in the format "file:line:col". If location information is not available,
|
||||
/// it returns "<unknown>:0:0".
|
||||
const std::string getLocationStr() const;
|
||||
std::string getLocationStr() const;
|
||||
|
||||
/// Return location information for this diagnostic in three parts:
|
||||
/// the relative source file path, line number and column.
|
||||
|
|
|
@ -152,7 +152,7 @@ void DiagnosticInfoWithLocationBase::getLocation(StringRef &RelativePath,
|
|||
Column = Loc.getColumn();
|
||||
}
|
||||
|
||||
const std::string DiagnosticInfoWithLocationBase::getLocationStr() const {
|
||||
std::string DiagnosticInfoWithLocationBase::getLocationStr() const {
|
||||
StringRef Filename("<unknown>");
|
||||
unsigned Line = 0;
|
||||
unsigned Column = 0;
|
||||
|
|
Loading…
Reference in New Issue