[utils] Fix update scripts output when run on python3.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 30 Jan 2019 16:15:59 +0000 (16:15 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 30 Jan 2019 16:15:59 +0000 (16:15 +0000)
commitd82bd4d9119c4b0850f8e18360d0f70ab5eb08aa
treea6a76e0be4ead304e10299d701763edffd4d557f
parent362653f7afec25c71604f18856011bd02071a555
[utils] Fix update scripts output when run on python3.

This fixes a "bytes-like object is required, not 'str'" python3 error I hit on update_llc_test_checks.py (but present on the other scripts as well) by matching what update_mca_test_checks.py already does, plus I've added an explicit 'utf-8' encoding.

llvm-svn: 352633
llvm/utils/update_analyze_test_checks.py
llvm/utils/update_llc_test_checks.py
llvm/utils/update_mca_test_checks.py
llvm/utils/update_test_checks.py