mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[llvm-jitlink] Add -show-init-es option to dump initial ExecutionSession state.
Inspecting this state can be helpful when debugging jit-linking testcases.
This commit is contained in:
parent
601e0cfef0
commit
da59eff7c0
@ -86,6 +86,11 @@ static cl::list<std::string> AbsoluteDefs(
|
||||
cl::desc("Inject absolute symbol definitions (syntax: <name>=<addr>)"),
|
||||
cl::ZeroOrMore);
|
||||
|
||||
static cl::opt<bool> ShowInitialExecutionSessionState(
|
||||
"show-init-es",
|
||||
cl::desc("Print ExecutionSession state before resolving entry point"),
|
||||
cl::init(false));
|
||||
|
||||
static cl::opt<bool> ShowAddrs(
|
||||
"show-addrs",
|
||||
cl::desc("Print registered symbol, section, got and stub addresses"),
|
||||
@ -841,12 +846,14 @@ int main(int argc, char *argv[]) {
|
||||
ExitOnErr(loadProcessSymbols(*S));
|
||||
ExitOnErr(loadDylibs());
|
||||
|
||||
|
||||
{
|
||||
TimeRegion TR(Timers ? &Timers->LoadObjectsTimer : nullptr);
|
||||
ExitOnErr(loadObjects(*S));
|
||||
}
|
||||
|
||||
if (ShowInitialExecutionSessionState)
|
||||
S->ES.dump(outs());
|
||||
|
||||
JITEvaluatedSymbol EntryPoint = 0;
|
||||
{
|
||||
TimeRegion TR(Timers ? &Timers->LinkTimer : nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user