[lit] Don't match tool names within new PM's <> markers

For example, stop expanding 'opt' in -passes='require<opt-remark-emit>'.

llvm-svn: 276707
This commit is contained in:
Adam Nemet 2016-07-25 23:09:10 +00:00
parent 6b2748104b
commit 39e039c606
1 changed files with 1 additions and 1 deletions

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