aot compiler: Some updates for LLVM 18 (#2981)
Note: This commit includes copy-and-paste from LLVM and thus adds the LLVM copyright notice. cf.0a1aa6cda2cf.a1e9777b76cf.56c72c7f33
This commit is contained in:
@ -409,7 +409,10 @@ aot_compress_aot_func_names(AOTCompContext *comp_ctx, uint32 *p_size)
|
||||
NameStrs.push_back(str);
|
||||
}
|
||||
|
||||
if (collectPGOFuncNameStrings(NameStrs, true, Result)) {
|
||||
#if LLVM_VERSION_MAJOR < 18
|
||||
#define collectGlobalObjectNameStrings collectPGOFuncNameStrings
|
||||
#endif
|
||||
if (collectGlobalObjectNameStrings(NameStrs, true, Result)) {
|
||||
aot_set_last_error("collect pgo func name strings failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user