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

Adam Nemet via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 16:09:10 PDT 2016


Author: anemet
Date: Mon Jul 25 18:09:10 2016
New Revision: 276707

URL: http://llvm.org/viewvc/llvm-project?rev=276707&view=rev
Log:
[lit] Don't match tool names within new PM's <> markers

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

Modified:
    llvm/trunk/test/lit.cfg

Modified: llvm/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.cfg?rev=276707&r1=276706&r2=276707&view=diff
==============================================================================
--- llvm/trunk/test/lit.cfg (original)
+++ llvm/trunk/test/lit.cfg Mon Jul 25 18:09:10 2016
@@ -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):




More information about the llvm-commits mailing list