[demangler] write-protect non-canonical source
authorNathan Sidwell <nathan@acm.org>
Mon, 24 Jan 2022 12:14:47 +0000 (04:14 -0800)
committerNathan Sidwell <nathan@acm.org>
Mon, 24 Jan 2022 13:28:38 +0000 (05:28 -0800)
commit897d1bb659c2a23baed8ff4881960945125c40f7
tree6a57d43e9286ed508d60c29b3075de24ea734104
parent38ffea9b4c1f59ebf434a9774cd7ae741cc87d70
[demangler] write-protect non-canonical source

To try and avoid undesired changes to the non-canonical demangler
sources, change the cp-to-llvm script to (a) write-protect the target
files and (b) prepend 'do not edit' comments that are significant to
emacs[*], and hopefully humans.

Reviewed By: ChuanqiXu

Differential Revision: https://reviews.llvm.org/D118008
libcxxabi/src/demangle/cp-to-llvm.sh
llvm/include/llvm/Demangle/ItaniumDemangle.h
llvm/include/llvm/Demangle/StringView.h
llvm/include/llvm/Demangle/Utility.h