[llvm] 8d1b6af - [llvm][utils] Rename lldb dict variables to internal_dict
Dave Lee via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 26 07:47:00 PST 2021
Author: Dave Lee
Date: 2021-02-26T07:46:54-08:00
New Revision: 8d1b6afcea6c30db7728d966d9281ab373eaa9e1
URL: https://github.com/llvm/llvm-project/commit/8d1b6afcea6c30db7728d966d9281ab373eaa9e1
DIFF: https://github.com/llvm/llvm-project/commit/8d1b6afcea6c30db7728d966d9281ab373eaa9e1.diff
LOG: [llvm][utils] Rename lldb dict variables to internal_dict
Most lldb scripts use `internal_dict`. Also, `dict` is a builtin constructor,
it's good habit to avoid using it as a variable name.
Added:
Modified:
llvm/utils/lldbDataFormatters.py
Removed:
################################################################################
diff --git a/llvm/utils/lldbDataFormatters.py b/llvm/utils/lldbDataFormatters.py
index b95bf84ab108..b759ee0309a1 100644
--- a/llvm/utils/lldbDataFormatters.py
+++ b/llvm/utils/lldbDataFormatters.py
@@ -35,7 +35,7 @@ def __lldb_init_module(debugger, internal_dict):
# Pretty printer for llvm::SmallVector/llvm::SmallVectorImpl
class SmallVectorSynthProvider:
- def __init__(self, valobj, dict):
+ def __init__(self, valobj, internal_dict):
self.valobj = valobj;
self.update() # initialize this provider
@@ -74,7 +74,7 @@ def update(self):
class ArrayRefSynthProvider:
""" Provider for llvm::ArrayRef """
- def __init__(self, valobj, dict):
+ def __init__(self, valobj, internal_dict):
self.valobj = valobj;
self.update() # initialize this provider
More information about the llvm-commits
mailing list