mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-25 12:04:36 +00:00
[lit] Don't match tool names within new PM's <> markers
For example, stop expanding 'opt' in -passes='require<opt-remark-emit>'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276707 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
efd299c08e
commit
4aaf0b6303
@ -220,7 +220,7 @@ else:
|
||||
# The regex is a pre-assertion to avoid matching a preceding
|
||||
# dot, hyphen, carat, or slash (.foo, -foo, etc.). Some patterns
|
||||
# also have a post-assertion to not match a trailing hyphen (foo-).
|
||||
NOJUNK = r"(?<!\.|-|\^|/)"
|
||||
NOJUNK = r"(?<!\.|-|\^|/|<)"
|
||||
|
||||
|
||||
def find_tool_substitution(pattern):
|
||||
|
Loading…
x
Reference in New Issue
Block a user