projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9729835
)
[IR] Drop unnecessary const from a return type (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 07:29:51 +0000
(
00:29
-0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 16 Apr 2023 07:29:51 +0000
(
00:29
-0700)
Identified with readability-const-return-type.
llvm/include/llvm/IR/DebugInfoMetadata.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/IR/DebugInfoMetadata.h
b/llvm/include/llvm/IR/DebugInfoMetadata.h
index
deabd9b
..
ebf011c
100644
(file)
--- a/
llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/
llvm/include/llvm/IR/DebugInfoMetadata.h
@@
-1921,7
+1921,7
@@
public:
/// Return the linkage name of Subprogram. If the linkage name is empty,
/// return scope name (the demangled name).
-
const
StringRef getSubprogramLinkageName() const {
+ StringRef getSubprogramLinkageName() const {
DISubprogram *SP = getScope()->getSubprogram();
if (!SP)
return "";