aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorMichael Buch <michaelbuch12@gmail.com>2022-12-13 17:40:02 +0000
committerMichael Buch <michaelbuch12@gmail.com>2022-12-14 22:31:45 +0000
commit5996ce17fb265e461b5d580c1873cb8e3ff8d62d (patch)
tree562bc9af21d5aa9d6c3eeccd0dc5f436fc271da9 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parent62896428a766ecdec28432d3bfea3155cbeafe78 (diff)
downloadllvm-5996ce17fb265e461b5d580c1873cb8e3ff8d62d.zip
llvm-5996ce17fb265e461b5d580c1873cb8e3ff8d62d.tar.gz
llvm-5996ce17fb265e461b5d580c1873cb8e3ff8d62d.tar.bz2
[clang][DebugInfo] Attach DW_AT_default_value to template arg metadata regardless of DwarfVersion
**Summary** Starting with DWARFv5, DW_AT_default_value can be used to indicate that a template argument has a default value. With this patch Clang will attach the attribute to the debug metadata regardless of version. In a follow-up patch we will change llvm to emit this attribute in earlier versions of DWARF, unless compiling with -gstrict-dwarf. **Details** * Previously the DwarfVersion check in CGDebugInfo was inconsistent: For non-type template arguments we attached the attribute to the debug metadata in DWARFv5 only. Whereas for type template arguments we didn't have such a version restriction. With this patch we attach the attribute regardless of DWARF version (and instead offload the check to the AsmPrinter in a future patch).
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions