[Basic] Drop unnecessary const from return types (NFC)

Identified with readability-const-return-type.
This commit is contained in:
Kazu Hirata
2021-12-29 08:55:37 -08:00
parent 298367ee6e
commit ee3f557a9c
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ namespace clang {
/// postfixed by a plus or minus sign delimited by colons, e.g.
/// gfx908:xnack+:sramecc-. Each processor have a limited
/// number of predefined features when showing up in a target ID.
const llvm::SmallVector<llvm::StringRef, 4>
llvm::SmallVector<llvm::StringRef, 4>
getAllPossibleTargetIDFeatures(const llvm::Triple &T,
llvm::StringRef Processor);

View File

@@ -15,7 +15,7 @@
namespace clang {
static const llvm::SmallVector<llvm::StringRef, 4>
static llvm::SmallVector<llvm::StringRef, 4>
getAllPossibleAMDGPUTargetIDFeatures(const llvm::Triple &T,
llvm::StringRef Proc) {
// Entries in returned vector should be in alphabetical order.
@@ -33,7 +33,7 @@ getAllPossibleAMDGPUTargetIDFeatures(const llvm::Triple &T,
return Ret;
}
const llvm::SmallVector<llvm::StringRef, 4>
llvm::SmallVector<llvm::StringRef, 4>
getAllPossibleTargetIDFeatures(const llvm::Triple &T,
llvm::StringRef Processor) {
llvm::SmallVector<llvm::StringRef, 4> Ret;