diff options
author | Devang Patel <dpatel@apple.com> | 2010-07-24 00:59:16 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-07-24 00:59:16 +0000 |
commit | 05b0f4195edf62af76795c92703a1d0c0fa936d9 (patch) | |
tree | b0a21cfcd4f8b18ccb71295e4f5a5eacd90193cf /examples/clang-interpreter/main.cpp | |
parent | 592508ed997e52207cf380f9b6eb9943994ad7ae (diff) |
Untangle filename/dirname confusion. Store constructed strings on the side. Avoid use of Path.makeAbsolute().
DW_TAG_compile_unit uses two attributes DW_AT_name and DW_AT_comp_dir. Their expected values are:
$ clang foo.c -g
DW_AT_name - foo.c
DW_AT_comp_dir - `pwd`
$ clang one/two/foo.c -g
DW_AT_name - one/two/foo.c
DW_AT_comp_dir - `pwd`
$ clang /tmp/one/foo.c -g
DW_AT_name - /tmp/one/foo.c
DW_AT_comp_dir - empty
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/clang-interpreter/main.cpp')
0 files changed, 0 insertions, 0 deletions