[flang] Use octal escapes for character literals in modfiles
authorTim Keith <tkeith@nvidia.com>
Mon, 13 Jul 2020 19:19:17 +0000 (12:19 -0700)
committerTim Keith <tkeith@nvidia.com>
Mon, 13 Jul 2020 19:19:18 +0000 (12:19 -0700)
commit3780d3eb1001fd25d4b4cf953ae621a0f3b30ee5
treeece9a58ef6f3257ae54e6b63c0be84119879ce3a
parent353fa4403a06c2d86d617362b42e20ee6b3f53be
[flang] Use octal escapes for character literals in modfiles

Character literals can be formatted using octal or hex escapes for
non-ascii characters. This is so that the program can be unparsed for
either pgf90 or gfortran to compile. But modfiles should not be affected
by that -- they should be consistent.

This changes causes modfiles to always have character literals formatted
with octal escapes.

Differential Revision: https://reviews.llvm.org/D83703
flang/lib/Semantics/mod-file.cpp
flang/lib/Semantics/mod-file.h