aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-08-23 22:53:23 -0700
committerFangrui Song <i@maskray.me>2020-08-23 22:53:46 -0700
commitfd485673dafd9211fa0379f491875e452cbd41ce (patch)
tree0e9156cf4501f7315b73a9842270bd7b462e1719 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parent3137c299269dd758c4c1630dc0c4621a1137eb7c (diff)
downloadllvm-fd485673dafd9211fa0379f491875e452cbd41ce.zip
llvm-fd485673dafd9211fa0379f491875e452cbd41ce.tar.gz
llvm-fd485673dafd9211fa0379f491875e452cbd41ce.tar.bz2
[LiveDebugVariables] Internalize class DbgVariableValue. NFC
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 158e873..dd0a900 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -96,6 +96,7 @@ LiveDebugVariables::LiveDebugVariables() : MachineFunctionPass(ID) {
enum : unsigned { UndefLocNo = ~0U };
+namespace {
/// Describes a debug variable value by location number and expression along
/// with some flags about the original usage of the location.
class DbgVariableValue {
@@ -136,6 +137,7 @@ private:
unsigned WasIndirect : 1;
const DIExpression *Expression = nullptr;
};
+} // namespace
/// Map of where a user value is live to that value.
using LocMap = IntervalMap<SlotIndex, DbgVariableValue, 4>;