diff options
author | Sanjay Patel <spatel@rotateright.com> | 2016-03-24 17:30:38 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2016-03-24 17:30:38 +0000 |
commit | 506fd0d81d5ef177d0639fd2fd83f6b2cad6f9d2 (patch) | |
tree | 6268554b12ab45a99f9b1d67d96d74830acc2ffb | |
parent | 26fe92d19fc7db8974ceb149ca762ebbfa9ab8f8 (diff) | |
download | bcm5719-llvm-506fd0d81d5ef177d0639fd2fd83f6b2cad6f9d2.tar.gz bcm5719-llvm-506fd0d81d5ef177d0639fd2fd83f6b2cad6f9d2.zip |
don't hardcode the name of the llc checks script
We lose the 'utils' directory name in our advertising line with
this change. We could retain that, but I don't see the point.
This removes a dependency for making the script apply to more than
'llc'. Ie, we'll want to change the script name if it works with
opt/clang too.
llvm-svn: 264310
-rwxr-xr-x | llvm/utils/update_llc_test_checks.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/utils/update_llc_test_checks.py b/llvm/utils/update_llc_test_checks.py index 55af9f1759f..8669b32324a 100755 --- a/llvm/utils/update_llc_test_checks.py +++ b/llvm/utils/update_llc_test_checks.py @@ -9,8 +9,7 @@ a single test function. import argparse import itertools -# Could be used to advertise this file's name ("autogenerated_note"). -# import os +import os # Used to advertise this file's name ("autogenerated_note"). import string import subprocess import sys @@ -144,10 +143,8 @@ def main(): parser.add_argument('tests', nargs='+') args = parser.parse_args() - # FIXME: we don't need to hardcode this name. autogenerated_note = ('; NOTE: Assertions have been autogenerated by ' - 'utils/update_llc_test_checks.py') - # + os.path.basename(__file__)) + + os.path.basename(__file__)) for test in args.tests: if args.verbose: |