
This is the conclusion of an effort to get LLDB's Python code structured into a bona-fide Python package. This has a number of benefits, but most notably the ability to more easily share Python code between different but related pieces of LLDB's Python infrastructure (for example, `scripts` can now share code with `test`). llvm-svn: 251532
15 lines
440 B
C
15 lines
440 B
C
#define MakeResolver(name) \
|
|
void * name ## Resolver(void) __asm__("_" #name); \
|
|
void * name ## Resolver(void) { \
|
|
__asm__(".symbol_resolver _" #name); \
|
|
return name ## _hidden; \
|
|
}
|
|
|
|
int
|
|
call_through_indirect_hidden(int arg)
|
|
{
|
|
return arg + 5;
|
|
}
|
|
|
|
MakeResolver(call_through_indirect)
|