[PATCH] D78561: [NFC] Improve Debugging experience with some LLVM Types
Tyker via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 21 06:59:10 PDT 2020
Tyker created this revision.
Tyker added reviewers: dblaikie, chandlerc.
Herald added subscribers: llvm-commits, dexonsmith.
Herald added a project: LLVM.
When debugging it is usefull to be able to look at the content of containers.
But many containers are templated so there member functions are not emitted if they are not used.
this patch adds the `used` attribute to some member functions of SmallVector, DenseMap and PointerIntPair
when asserts are enabled and the host complier supports it. this way interacting with thoses type
from the debugger is easier.
in this patch, I only updated the containers I most frequently have this issue with.
but many other could get the same treatement.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78561
Files:
llvm/include/llvm/ADT/DenseMap.h
llvm/include/llvm/ADT/PointerIntPair.h
llvm/include/llvm/ADT/SmallVector.h
llvm/include/llvm/Support/Compiler.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78561.258981.patch
Type: text/x-patch
Size: 6125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200421/21cc7382/attachment.bin>
More information about the llvm-commits
mailing list