mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Added a support for indirect jumps within a function (Compiler) (#286)
This commit is contained in:
@@ -52,19 +52,21 @@ static void fail(const char* message, Error err) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
ASMJIT_UNUSED(argc);
|
||||
ASMJIT_UNUSED(argv);
|
||||
|
||||
int main() {
|
||||
CodeInfo codeInfo(ArchInfo::kIdHost);
|
||||
JitAllocator allocator;
|
||||
|
||||
#ifndef ASMJIT_NO_LOGGING
|
||||
FileLogger logger(stdout);
|
||||
logger.setIndentation(FormatOptions::kIndentationCode, 2);
|
||||
#endif
|
||||
|
||||
CodeHolder code;
|
||||
code.init(codeInfo);
|
||||
|
||||
#ifndef ASMJIT_NO_LOGGING
|
||||
code.setLogger(&logger);
|
||||
#endif
|
||||
|
||||
Section* dataSection;
|
||||
Error err = code.newSection(&dataSection, ".data", SIZE_MAX, 0, 8);
|
||||
|
||||
Reference in New Issue
Block a user