[PATCH] D59288: [DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags
Paul Robinson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 13 11:38:30 PDT 2019
probinson added inline comments.
================
Comment at: include/llvm-c/DebugInfo.h:53
LLVMDIFlagNoReturn = 1 << 20,
- LLVMDIFlagMainSubprogram = 1 << 21,
- LLVMDIFlagTypePassByValue = 1 << 22,
- LLVMDIFlagTypePassByReference = 1 << 23,
- LLVMDIFlagEnumClass = 1 << 24,
+ LLVMDIFlagTypePassByValue = 1 << 21,
+ LLVMDIFlagTypePassByReference = 1 << 22,
----------------
Better to leave an unused bit in the middle? No need to reassign existing flags to new bits. The next time somebody adds a new flag, it can use the previously unused bit. This will simplify the auto-upgrade as well.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59288/new/
https://reviews.llvm.org/D59288
More information about the llvm-commits
mailing list