diff options
author | Daniel Paoliello <danpao@microsoft.com> | 2023-05-03 17:22:52 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2023-05-03 18:20:16 -0700 |
commit | e48826e016e2f427f3b7b1274166aa9aa0ea7f4f (patch) | |
tree | 2d94cb8fcb0c9ccd6e9ea9ae5143f7eeba625f2a /llvm/lib/Object/ELFObjectFile.cpp | |
parent | 1c2b8129e99478a9b0222fc0aaf44a4a47e7ecd6 (diff) | |
download | llvm-e48826e016e2f427f3b7b1274166aa9aa0ea7f4f.zip llvm-e48826e016e2f427f3b7b1274166aa9aa0ea7f4f.tar.gz llvm-e48826e016e2f427f3b7b1274166aa9aa0ea7f4f.tar.bz2 |
Emit the correct flags for the PROC CodeView Debug Symbol
The S_LPROC32_ID and S_GPROC32_ID CodeView Debug Symbols have a flags
field which LLVM has had the values for (in the ProcSymFlags enum) but
has never actually set.
These flags are used by Microsoft-internal tooling that leverages debug
information to do binary analysis.
Modified LLVM to set the correct flags:
- ProcSymFlags::HasOptimizedDebugInfo - always set, as this indicates that
debug info is present for optimized builds (if debug info is not emitted
for optimized builds, then LLVM won't emit a debug symbol at all).
- ProcSymFlags::IsNoReturn and ProcSymFlags::IsNoInline - set if the
function has the NoReturn or NoInline attributes respectively.
- ProcSymFlags::HasFP - set if the function requires a frame pointer (per
TargetFrameLowering::hasFP).
Differential Revision: https://reviews.llvm.org/D148761
Diffstat (limited to 'llvm/lib/Object/ELFObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions