[flang] Use fundamental types in overloadings of Unparse.
authorTim Keith <tkeith@nvidia.com>
Wed, 10 Oct 2018 14:24:27 +0000 (07:24 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 10 Oct 2018 14:24:27 +0000 (07:24 -0700)
commit03435d981d89fb047b2343ba166f5daa9a3261b9
treed7e8588ca83a945c5c5557d72cd72e08ffdfbcbf
parent56508e973c8b48247bebcd6e425291881c8fb8f2
[flang] Use fundamental types in overloadings of Unparse.

Different systems map std::size_t, string::size_type, etc. to different
fundamental types. To ensure they are all covered, make the overloadings
of Unparse for integer types use only fundamental types.

This fixes compilations problems on Darwin and *BSD systems.

Original-commit: flang-compiler/f18@5576ed49a2ebe4bfae4a53772a6e0a0d98c18fa0
Reviewed-on: https://github.com/flang-compiler/f18/pull/205
flang/lib/parser/unparse.cc