OSDN Git Service

[DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags
authorPetar Jovanovic <petar.jovanovic@mips.com>
Tue, 19 Mar 2019 13:49:03 +0000 (13:49 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Tue, 19 Mar 2019 13:49:03 +0000 (13:49 +0000)
commit92078fc49a70bf051b824bcf7fae18fabfd7e2b7
tree66543fe6a2ec648bb51973ceafb0a2f491f998ba
parent9f91501d176a4d4af79fb5806296174d3903755e
[DebugInfoMetadata] Move main subprogram DIFlag into DISPFlags

Moving subprogram specific flags into DISPFlags makes IR code more readable.
In addition, we provide free space in DIFlags for other
'non-subprogram-specific' debug info flags.

Patch by Djordje Todorovic.

Differential Revision: https://reviews.llvm.org/D59288

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356454 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/DebugInfo.h
include/llvm/IR/DebugInfoFlags.def
include/llvm/IR/DebugInfoMetadata.h
lib/Bitcode/Reader/MetadataLoader.cpp
test/Bitcode/DISubprogram-v5.ll [new file with mode: 0644]
test/Bitcode/DISubprogram-v5.ll.bc [new file with mode: 0755]
test/DebugInfo/Generic/containing-type-extension.ll
test/DebugInfo/Generic/discriminated-union.ll
test/DebugInfo/Generic/mainsubprogram.ll
test/DebugInfo/Generic/univariant-discriminated-union.ll
test/DebugInfo/X86/containing-type-extension-rust.ll