Add --target-path option to dump-class-layout
authorutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jul 2018 18:52:22 +0000 (18:52 +0000)
committerutatane.tea@gmail.com <utatane.tea@gmail.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 16 Jul 2018 18:52:22 +0000 (18:52 +0000)
commit31ebacae350ca867783a3f4042a5d95adaab0315
treeb77306bb535e93f60e5982a9efa6cedcc8a05f3a
parent1bffe0f1b140f3786579729e1b6755e9ba1cab16
Add --target-path option to dump-class-layout
https://bugs.webkit.org/show_bug.cgi?id=187687

Reviewed by Simon Fraser.

We add an escape hatch to dump-class-layout for specifying target path directly.
This `--target-path` allows us to use dump-class-layout in the other ports
like JSCOnly.

We can dump class layout if we build the target with clang by using the following command.

Tools/Scripts/dump-class-layout \
    --architecture=x86_64 \
    --target-path=path/to/libJavaScriptCore.so \
    JavaScriptCore \
    ScopeNode

* Scripts/dump-class-layout:
(main):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233856 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/Scripts/dump-class-layout