[Lldb-commits] [lldb] [lldb][test] Remove `self` references from decorators (PR #72416)

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Wed Nov 15 13:01:42 PST 2023


================
@@ -184,3 +187,144 @@ def hasChattyStderr(test_case):
     ):
         return True  # The dynamic linker on the device will complain about unknown DT entries
     return False
+
+
+def builder_module():
+    return get_builder(sys.platform)
+
+
+def getArchitecture():
+    """Returns the architecture in effect the test suite is running with."""
+    module = builder_module()
+    arch = module.getArchitecture()
+    if arch == "amd64":
+        arch = "x86_64"
+    if arch in ["armv7l", "armv8l"]:
+        arch = "arm"
+    return arch
+
+
+lldbArchitecture = None
+
+
+def getLldbArchitecture():
----------------
medismailben wrote:

I think we can make an exception for lldb's casing here.

```suggestion
def getLLDBArchitecture():
```

https://github.com/llvm/llvm-project/pull/72416


More information about the lldb-commits mailing list