This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj]Add test showing behaviour of thin archive member path printing
ClosedPublic

Authored by jhenderson on Feb 28 2019, 3:09 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

jhenderson created this revision.Feb 28 2019, 3:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2019, 3:09 AM
Higuoxing accepted this revision.Feb 28 2019, 3:32 AM

LGTM :)

This revision is now accepted and ready to land.Feb 28 2019, 3:32 AM
grimar accepted this revision.Feb 28 2019, 3:59 AM

LGTM + leaved a comment.

test/tools/llvm-readobj/thin-archive-paths.test
19

I hope this will this work under both linux and windows (I am not sure).
I guess you might need to use:

Error reading file: a{{/|\\}}relative.a
grimar added inline comments.Feb 28 2019, 4:01 AM
test/tools/llvm-readobj/thin-archive-paths.test
19

On second thought, I guess the archive should not contain the windows style slashes.

jhenderson marked an inline comment as done.Feb 28 2019, 4:20 AM
jhenderson added inline comments.
test/tools/llvm-readobj/thin-archive-paths.test
19

Actually, the archive contains whatever slash is on the command-line when adding the member. In this case, it will be '/' even on Windows. The full path below will have a mixture of '/' and '\' on Windows. llvm-readobj then just prints what's in the archive.

BTW, I did this all on Windows, so it definitely works on there.

grimar added inline comments.Feb 28 2019, 4:24 AM
test/tools/llvm-readobj/thin-archive-paths.test
19

OK, great, thanks for the explanation!

rupprecht accepted this revision.Feb 28 2019, 7:47 AM

Thanks!