[DebugInfoMetadata] Refactor DIExpression::prepend constants (NFC)
commit0ddfb52ad6257d115dbdc93863362491ec5b9bf4
authorPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 20 May 2019 10:35:57 +0000 (20 10:35 +0000)
committerPetar Jovanovic <petar.jovanovic@mips.com>
Mon, 20 May 2019 10:35:57 +0000 (20 10:35 +0000)
tree289b1a8306d3afd064eab2e52c3daf04438d8103
parent88ea355812554574a6a376f022baec55e77cfac8
[DebugInfoMetadata] Refactor DIExpression::prepend constants (NFC)

Refactor DIExpression::With* into a flag enum in order to be less
error-prone to use (as discussed on D60866).

Patch by Djordje Todorovic.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361137 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
include/llvm/IR/DebugInfoMetadata.h
include/llvm/Transforms/Utils/Local.h
lib/CodeGen/LiveDebugValues.cpp
lib/CodeGen/LiveDebugVariables.cpp
lib/CodeGen/MachineInstr.cpp
lib/CodeGen/PrologEpilogInserter.cpp
lib/CodeGen/SafeStack.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/IR/DebugInfoMetadata.cpp
lib/Target/NVPTX/NVPTXPrologEpilogPass.cpp
lib/Target/X86/X86OptimizeLEAs.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Utils/InlineFunction.cpp
lib/Transforms/Utils/Local.cpp
unittests/IR/MetadataTest.cpp
unittests/Transforms/Utils/LocalTest.cpp