DebugInfo: use strongly typed enum for debug info flags
authorMehdi Amini <mehdi.amini@apple.com>
Tue, 6 Sep 2016 03:14:06 +0000 (03:14 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Tue, 6 Sep 2016 03:14:06 +0000 (03:14 +0000)
commit356d6b636b778fb256f8ae404021a1c70a6e6e53
tree092ddfd0ea9c888658f15e1b4239107303784766
parentac00212f16ed8c798a12b19b8621263ed8c80e2a
DebugInfo: use strongly typed enum for debug info flags

Use ADT/BitmaskEnum for DINode::DIFlags for the following purposes:
    * Get rid of unsigned int for flags to avoid problems on platforms with sizeof(int) < 4
    * Flags are now strongly typed

Patch by: Victor Leschuk <vleschuk@gmail.com>

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

llvm-svn: 280686
13 files changed:
llvm/include/llvm/IR/DIBuilder.h
llvm/include/llvm/IR/DebugInfoFlags.def
llvm/include/llvm/IR/DebugInfoMetadata.h
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/IR/DIBuilder.cpp
llvm/lib/IR/DebugInfoMetadata.cpp
llvm/unittests/IR/DebugInfoTest.cpp
llvm/unittests/IR/DebugTypeODRUniquingTest.cpp
llvm/unittests/IR/IRBuilderTest.cpp
llvm/unittests/IR/MetadataTest.cpp
llvm/unittests/Transforms/Utils/Cloning.cpp