[llvm] fd48567 - [LiveDebugVariables] Internalize class DbgVariableValue. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 23 22:53:58 PDT 2020


Author: Fangrui Song
Date: 2020-08-23T22:53:46-07:00
New Revision: fd485673dafd9211fa0379f491875e452cbd41ce

URL: https://github.com/llvm/llvm-project/commit/fd485673dafd9211fa0379f491875e452cbd41ce
DIFF: https://github.com/llvm/llvm-project/commit/fd485673dafd9211fa0379f491875e452cbd41ce.diff

LOG: [LiveDebugVariables] Internalize class DbgVariableValue. NFC

Added: 
    

Modified: 
    llvm/lib/CodeGen/LiveDebugVariables.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 158e873370b1..dd0a900fc2be 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 @@ class DbgVariableValue {
   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>;


        


More information about the llvm-commits mailing list