Skip to content

Commit c38fe1f

Browse files
committed
Use StringRef in getPassName (NFC)
1 parent 21dbd11 commit c38fe1f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUPrintfRuntimeBinding : public ModulePass {
4040
static char ID;
4141
explicit AMDGPUPrintfRuntimeBinding();
4242
SmallVector<Value*, 32> Printfs;
43-
const char* getPassName() const override;
43+
StringRef getPassName() const override;
4444
bool runOnModule(Module &M) override;
4545
bool doInitialization(Module &M) override;
4646
bool doFinalization(Module &M) override;
@@ -673,7 +673,7 @@ bool AMDGPUPrintfRuntimeBinding::runOnModule(Module &M) {
673673
return lowerPrintfForGpu(M);
674674
}
675675

676-
const char* AMDGPUPrintfRuntimeBinding::getPassName() const {
676+
StringRef AMDGPUPrintfRuntimeBinding::getPassName() const {
677677
return "AMD Printf lowering part 1";
678678
}
679679

lib/Target/AMDGPU/SIMemoryLegalizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class SIMemoryLegalizer final : public MachineFunctionPass {
9595
MachineFunctionPass::getAnalysisUsage(AU);
9696
}
9797

98-
const char *getPassName() const override {
98+
StringRef getPassName() const override {
9999
return PASS_NAME;
100100
}
101101

0 commit comments

Comments
 (0)