aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAbid Qadeer <haqadeer@amd.com>2024-06-17 11:57:03 +0100
committerGitHub <noreply@github.com>2024-06-17 11:57:03 +0100
commit7e4f7fcd9c0622270269d9e01031c5059cb41dae (patch)
tree6a5514eb5927f4fc32cf1b1dbce06b80a7cbfe41 /flang/lib/Frontend/CompilerInvocation.cpp
parentf838f08c8def5f49001bba9dc4f682baef04cd14 (diff)
downloadllvm-7e4f7fcd9c0622270269d9e01031c5059cb41dae.zip
llvm-7e4f7fcd9c0622270269d9e01031c5059cb41dae.tar.gz
llvm-7e4f7fcd9c0622270269d9e01031c5059cb41dae.tar.bz2
[flang][debug] Support fixed size character type. (#95462)
This PR adds debug support for fixed size character type. The character type gets translated to DIStringType. As I have noticed in comments, currently DIStringType does not have a way to represent the underlying character type of the string. This restricts our ability to represent wide string. As an example, this is how the debugger shows 2 different type of string. Note that non-ascii characters work ok with default kind string. character(kind=4, len=5) :: str1 character(len=16) :: str2 str1 = 'hello' str2 = 'π = 3.14' (gdb) p str1 $1 = 'h\000\000\000e\000\000\000l\000\000\000l\000\000\000o\000\000\000' (gdb) p str2 $2 = 'π = 3.14 '
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions