mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Allow the regular expression to be extended by a parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31442 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2461b73d9d
commit
023fa4105b
@ -4,9 +4,12 @@
|
||||
#
|
||||
# Synopsis: Returns 0 if the input does not contain a cast operator
|
||||
#
|
||||
# Syntax: notcast
|
||||
# Syntax: notcast tailexpr
|
||||
#
|
||||
# tailexpr - optionally allows a regular expression to go at the end
|
||||
#
|
||||
|
||||
if grep '\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)'
|
||||
if grep '\(\([sz]ext\)\|\(trunc\)\|\(fp2[us]int\)\|\([us]int2fp\)\|\(bitconvert\)\|\(fpext\)\|\(fptrunc\)\)'"$1"
|
||||
then exit 1
|
||||
else exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user