[lld] 4514c38 - [lld] Fix invalid Python escape sequences (#94033)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 31 07:37:52 PDT 2024
Author: Eisuke Kawashima
Date: 2024-08-31T16:37:49+02:00
New Revision: 4514c381f37204cbd26f3ea1d5d00a23b9cde309
URL: https://github.com/llvm/llvm-project/commit/4514c381f37204cbd26f3ea1d5d00a23b9cde309
DIFF: https://github.com/llvm/llvm-project/commit/4514c381f37204cbd26f3ea1d5d00a23b9cde309.diff
LOG: [lld] Fix invalid Python escape sequences (#94033)
Added:
Modified:
lld/test/MachO/tools/validate-unwind-info.py
lld/utils/benchmark.py
Removed:
################################################################################
diff --git a/lld/test/MachO/tools/validate-unwind-info.py b/lld/test/MachO/tools/validate-unwind-info.py
index ac49f1ecb58899..1cc82f82792731 100755
--- a/lld/test/MachO/tools/validate-unwind-info.py
+++ b/lld/test/MachO/tools/validate-unwind-info.py
@@ -11,7 +11,7 @@
def main():
- hex = "[a-f\d]"
+ hex = r"[a-f\d]"
hex8 = hex + "{8}"
parser = argparse.ArgumentParser(description=__doc__)
diff --git a/lld/utils/benchmark.py b/lld/utils/benchmark.py
index a07d5ecc69417c..7202e07ec438d2 100755
--- a/lld/utils/benchmark.py
+++ b/lld/utils/benchmark.py
@@ -51,7 +51,7 @@ def __str__(self):
def getBenchmarks():
ret = []
for i in glob.glob("*/response*.txt"):
- m = re.match("response-(.*)\.txt", os.path.basename(i))
+ m = re.match(r"response-(.*)\.txt", os.path.basename(i))
variant = m.groups()[0] if m else None
ret.append(Bench(os.path.dirname(i), variant))
return ret
More information about the llvm-commits
mailing list