llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.52k stars 11.79k forks source link

[llvm-debuginfo-analyzer] Remove the use of macros in 'LVReader.h' that describe the bumpallocators. #69155

Open CarlosAlbertoEnciso opened 1 year ago

CarlosAlbertoEnciso commented 1 year ago

Extracted from llvm/tools/llvm-debuginfo-analyzer/README.txt https://reviews.llvm.org/D137933#inline-1389904

Use a standard (or LLVM) map with typeinfo (would need a specialization to expose equality and hasher) for the allocators and the creation functions could be a function template.

llvmbot commented 1 year ago

@llvm/issue-subscribers-debuginfo

Author: Carlos Alberto Enciso (CarlosAlbertoEnciso)

Extracted from [llvm/tools/llvm-debuginfo-analyzer/README.txt](https://github.com/llvm/llvm-project/blob/main/llvm/tools/llvm-debuginfo-analyzer/README.txt) https://reviews.llvm.org/D137933#inline-1389904 Use a standard (or LLVM) map with `typeinfo` (would need a specialization to expose equality and hasher) for the allocators and the creation functions could be a function template.