[cfe-dev] Duplicate .file in debug information when clang is called with full path

Yaron Keren yaron.keren at gmail.com
Thu Oct 17 03:09:45 PDT 2013


When compiling a trivial main.cpp with latest clang on  Windows 7,

clang -S c:\llvm\test\main.cpp -g -std=c++1y -target i686-pc-mingw32

main.cpp appears twice in the debug information in the assembly file, once
with back slash and once with forward slash:

Lsection_debug_loc:
 .text
Ltext_begin:
.data
 .file 1 "c:\\llvm\\test/main.cpp"
.file 2 "c:\\llvm\\test\\main.cpp"
 .def _main;

compiling with MingW gcc results in one file only.

Yaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131017/61ae2132/attachment.html>


More information about the cfe-dev mailing list