[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)
commit38a61873963f94ce0da04c37ad58358b60242e55
tree5ae1065f1c634c2c4d2ffd6a2301c0bf2603d30f
parent423b9583065ca49ea6122741e4374902177e6a49
[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

llvm-svn: 356454
llvm/include/llvm-c/DebugInfo.h
llvm/include/llvm/IR/DebugInfoFlags.def
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/Bitcode/Reader/MetadataLoader.cpp
llvm/test/Bitcode/DISubprogram-v5.ll [new file with mode: 0644]
llvm/test/Bitcode/DISubprogram-v5.ll.bc [new file with mode: 0755]
llvm/test/DebugInfo/Generic/containing-type-extension.ll
llvm/test/DebugInfo/Generic/discriminated-union.ll
llvm/test/DebugInfo/Generic/mainsubprogram.ll
llvm/test/DebugInfo/Generic/univariant-discriminated-union.ll
llvm/test/DebugInfo/X86/containing-type-extension-rust.ll