Skip to content

Commit 36f22d2

Browse files
committed
Remove const qualifier from returnTagsNamesMap()
- No functional effect as ELFExtendedAttrParser holds TagsNamesMap as const. - Enables RVO optimization (e.g., move instead of copy).
1 parent f6bb422 commit 36f22d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/Support/AArch64AttributeParser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace llvm {
1616

1717
class AArch64AttributeParser : public ELFExtendedAttrParser {
18-
static const std::vector<SubsectionAndTagToTagName> returnTagsNamesMap();
18+
static std::vector<SubsectionAndTagToTagName> returnTagsNamesMap();
1919

2020
public:
2121
AArch64AttributeParser(ScopedPrinter *Sw)

llvm/lib/Support/AArch64AttributeParser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include "llvm/Support/AArch64AttributeParser.h"
1111

12-
const std::vector<llvm::SubsectionAndTagToTagName>
12+
std::vector<llvm::SubsectionAndTagToTagName>
1313
llvm::AArch64AttributeParser::returnTagsNamesMap() {
1414
return {{"aeabi_pauthabi", 1, "Tag_PAuth_Platform"},
1515
{"aeabi_pauthabi", 2, "Tag_PAuth_Schema"},

0 commit comments

Comments
 (0)