[llvm] 0f5f28d - Add gdb pretty printer for MutableArrayRef, remove ConstArrayRef.
Christian Sigg via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 9 13:44:03 PST 2020
Author: Christian Sigg
Date: 2020-01-09T22:43:45+01:00
New Revision: 0f5f28d000f73b4d0282c579477a4e31402a863e
URL: https://github.com/llvm/llvm-project/commit/0f5f28d000f73b4d0282c579477a4e31402a863e
DIFF: https://github.com/llvm/llvm-project/commit/0f5f28d000f73b4d0282c579477a4e31402a863e.diff
LOG: Add gdb pretty printer for MutableArrayRef, remove ConstArrayRef.
Reviewers: dblaikie
Reviewed By: dblaikie
Subscribers: merge_guards_bot, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D72136
Added:
Modified:
llvm/utils/gdb-scripts/prettyprinters.py
Removed:
################################################################################
diff --git a/llvm/utils/gdb-scripts/prettyprinters.py b/llvm/utils/gdb-scripts/prettyprinters.py
index 55f2b369319a..0a95b751b696 100644
--- a/llvm/utils/gdb-scripts/prettyprinters.py
+++ b/llvm/utils/gdb-scripts/prettyprinters.py
@@ -319,7 +319,7 @@ def to_string(self):
pp.add_printer('llvm::SmallString', '^llvm::SmallString<.*>$', SmallStringPrinter)
pp.add_printer('llvm::StringRef', '^llvm::StringRef$', StringRefPrinter)
pp.add_printer('llvm::SmallVectorImpl', '^llvm::SmallVector(Impl)?<.*>$', SmallVectorPrinter)
-pp.add_printer('llvm::ArrayRef', '^llvm::(Const)?ArrayRef<.*>$', ArrayRefPrinter)
+pp.add_printer('llvm::ArrayRef', '^llvm::(Mutable)?ArrayRef<.*>$', ArrayRefPrinter)
pp.add_printer('llvm::Expected', '^llvm::Expected<.*>$', ExpectedPrinter)
pp.add_printer('llvm::Optional', '^llvm::Optional<.*>$', OptionalPrinter)
pp.add_printer('llvm::DenseMap', '^llvm::DenseMap<.*>$', DenseMapPrinter)
More information about the llvm-commits
mailing list