On unix systems this logic would not separate the file and directory of
the DIFile unless they shared more components at the start than just the
root path character. The logic to do this was unix specific so it didn't
work on Windows. Now we check if the entire root_path is the same as
what you were going to set as the Dir and use the full filepath in that
case.
Details
- Reviewers
compnerd mstorsjo - Commits
- rGcb22d71806b7: [clang] Fix DIFile directory root on Windows
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Adding since you might be interested in this, I think the Swift logic is also derived from this so it might have the same difference.
clang/lib/CodeGen/CGDebugInfo.cpp | ||
---|---|---|
436 | This change is correct IMO. | |
clang/test/CodeGen/debug-prefix-map.c | ||
24 | I presume that this patch goes on top of D111457? It might be good to set that one as the parent revision of this one, so that the premerge test runs applies them on top of each other (right now, this one failed to apply). Isn't this particular change present (directory being "" here) already after the previous patch? |
clang/test/CodeGen/debug-prefix-map.c | ||
---|---|---|
24 | That is marked as the parent of this patch in phab, but maybe I need to do something else to get them to apply? | |
24 |
This does still require this change since otherwise directory still gets C: |
clang/test/CodeGen/debug-prefix-map.c | ||
---|---|---|
24 | Hmm, it seems like the premerge testing managed to start running this before the parent was set (and I didn't notice it when I looked at the patches the last round). If you reupload the patch later when this already is set, I think it should work though - but no hurry with that right now. | |
24 | Oh, ok. |
clang/test/CodeGen/debug-prefix-map.c | ||
---|---|---|
24 | Ah that's on my order of operations then, I submitted this, and then started the pre-warm, and haven't updated it since. Good to know, thanks. I will make sure CI passes here before landing anything regardless. |
Remove variables from test expectations
This didn't work out because of the double vs single slash of the expansions
clang/test/CodeGen/debug-prefix-map.c | ||
---|---|---|
7 | I think that this illustrates my point on the base differential. |
This change is correct IMO.