Skip to content

Commit 967f95e

Browse files
committed
Add more minor enhancements to ItaniumDemangle.h.
Make TemplateArgs::getParams() const and return reference instead of a copy. Signed-off-by: Konstantin S Bobrovsky <[email protected]>
1 parent 17299ee commit 967f95e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Demangle/ItaniumDemangle.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ class TemplateArgs final : public Node {
11991199

12001200
template<typename Fn> void match(Fn F) const { F(Params); }
12011201

1202-
NodeArray getParams() { return Params; }
1202+
const NodeArray &getParams() const { return Params; }
12031203

12041204
void printLeft(OutputStream &S) const override {
12051205
S += "<";

0 commit comments

Comments
 (0)