diff options
author | Kazu Hirata <kazu@google.com> | 2022-12-18 15:12:30 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-12-18 15:12:30 -0800 |
commit | 844c8fc9c93fa22a05663b5d75b489c0ff9081cc (patch) | |
tree | 70253488a2895e4747f44626f7c47f89b8928c1c /lldb/source/Commands | |
parent | 9f0c9e4725f6a6f1cad857102dc70fce759e610d (diff) | |
download | llvm-844c8fc9c93fa22a05663b5d75b489c0ff9081cc.zip llvm-844c8fc9c93fa22a05663b5d75b489c0ff9081cc.tar.gz llvm-844c8fc9c93fa22a05663b5d75b489c0ff9081cc.tar.bz2 |
[CodeGen] Include MachineInstr.h
This patch teaches DbgEntityHistoryCalculator.h to include
MachineInstr.h so that the header file is self contained.
Without this patch, a C++ source file that only includes
DbgEntityHistoryCalculator.h does not compile because:
PointerIntPair<const MachineInstr *, 1, EntryKind> Instr;
wants to know the alignment of llvm::MachineInstr:
llvm/include/llvm/Support/PointerLikeTypeTraits.h:61:28: error:
invalid application of 'alignof' to an incomplete type
'llvm::MachineInstr'
detail::ConstantLog2<alignof(T)>::value;
^~~~~~~~~~
Diffstat (limited to 'lldb/source/Commands')
0 files changed, 0 insertions, 0 deletions