[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:
Adam Nemet 2016-07-25 23:09:10 +00:00
parent efd299c08e
commit 4aaf0b6303

View File

@ -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):