aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2022-03-01 12:46:50 +0000
committerJeremy Morse <jeremy.morse@sony.com>2022-03-01 12:49:50 +0000
commitab49dce01f211fd80f76f449035d771f5e2720b9 (patch)
treef66bbc85f2e29db1b287729477408b7bd411c10b /clang/lib/Lex/ModuleMap.cpp
parent75db1795e44629b9c84c70410f6a6b106c4c5f3a (diff)
downloadllvm-ab49dce01f211fd80f76f449035d771f5e2720b9.zip
llvm-ab49dce01f211fd80f76f449035d771f5e2720b9.tar.gz
llvm-ab49dce01f211fd80f76f449035d771f5e2720b9.tar.bz2
[DebugInfo][InstrRef][NFC] Use unique_ptr instead of raw pointers
InstrRefBasedLDV allocates some big tables of ValueIDNum, to store live-in and live-out block values in, that then get passed around as pointers everywhere. This patch wraps the allocation in a std::unique_ptr, names some types based on unique_ptr, and passes references to those around instead. There's no functional change, but it makes it clearer to the reader that references to these tables are borrowed rather than owned, and we get some extra validity assertions too. Differential Revision: https://reviews.llvm.org/D118774
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions