DebugInfo: const-qualify accessors of DWARFExpression::Operation
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 16 Nov 2021 01:05:09 +0000 (17:05 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 16 Nov 2021 01:30:10 +0000 (17:30 -0800)
commit79df41011ba6b899c50f870bad4b28dbbb0d28cb
treeed5b918f7f570728d19aeda0500f8e4da05c963c
parentb23ba295bd129315eac09a52cf58346081e6fdc8
DebugInfo: const-qualify accessors of DWARFExpression::Operation

Add `const` to DWARFExpression::Operation's accessors and make
Operation::extract() private, since it's only used by the friend class
DWARFExpression::iterator.
llvm/include/llvm/DebugInfo/DWARF/DWARFExpression.h
llvm/lib/DebugInfo/DWARF/DWARFExpression.cpp