aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/UpdateTestChecks/common.py
diff options
context:
space:
mode:
authorOrlando Cazalet-Hyams <orlando.hyams@sony.com>2025-05-09 11:23:43 +0100
committerGitHub <noreply@github.com>2025-05-09 11:23:43 +0100
commit234ae9bfd97e6942193d152ae57ebba5d1b7c584 (patch)
tree2a92dca9564e873d3e332371a985a9fcbe8df011 /llvm/utils/UpdateTestChecks/common.py
parent89d13f87c736d1a341959d03f3f9e5e65b95ebf5 (diff)
downloadllvm-234ae9bfd97e6942193d152ae57ebba5d1b7c584.zip
llvm-234ae9bfd97e6942193d152ae57ebba5d1b7c584.tar.gz
llvm-234ae9bfd97e6942193d152ae57ebba5d1b7c584.tar.bz2
update_test_checks: indent dbg records (#139230)
LLVM prints debug records like `#dbg_value` indented 2 additional spaces.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
-rw-r--r--llvm/utils/UpdateTestChecks/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index e747ae3..d150612 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -602,6 +602,8 @@ TRIPLE_ARG_RE = re.compile(r"-m?triple[= ]([^ ]+)")
MARCH_ARG_RE = re.compile(r"-march[= ]([^ ]+)")
DEBUG_ONLY_ARG_RE = re.compile(r"-debug-only[= ]([^ ]+)")
+IS_DEBUG_RECORD_RE = re.compile(r"^(\s+)#dbg_")
+
SCRUB_LEADING_WHITESPACE_RE = re.compile(r"^(\s+)")
SCRUB_WHITESPACE_RE = re.compile(r"(?!^(| \w))[ \t]+", flags=re.M)
SCRUB_PRESERVE_LEADING_WHITESPACE_RE = re.compile(r"((?!^)[ \t]*(\S))[ \t]+")