Correct path seperator in DWARF debug info on Windows

NAKAMURA Takumi geek4civic at
Mon Mar 17 00:32:03 PDT 2014

Does dwarf affect "Your Windows"? I suppose MS toolchain would be
innocent of dwarf.
Would mingw emit '\\' as pathsep in dwarf? I'll investigate later.
(IIRC, it wouldn't)
I assume "preferred_separator" depends on host system. Would you
really like to emit '\\' on Windows targeting elf?

IMO, pathsep should be always normalized to '/' unless it would be illegal.

2014-03-17 16:18 GMT+09:00 Yaron Keren <yaron.keren at>:
> The path seperator is hardcoded in MCDwarf.cpp:649 as '/'. This is worng on
> Windows.
> A patch to use the correct path seperator is attached. I had to expose the
> path seperator from llvm::sys::path.
> Yaron
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at

More information about the cfe-commits mailing list