]> granicus.if.org Git - clang/commit
Untangle filename/dirname confusion. Store constructed strings on the side. Avoid...
authorDevang Patel <dpatel@apple.com>
Sat, 24 Jul 2010 00:59:16 +0000 (00:59 +0000)
committerDevang Patel <dpatel@apple.com>
Sat, 24 Jul 2010 00:59:16 +0000 (00:59 +0000)
commit05b0f4195edf62af76795c92703a1d0c0fa936d9
treeb0a21cfcd4f8b18ccb71295e4f5a5eacd90193cf
parent592508ed997e52207cf380f9b6eb9943994ad7ae
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
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h