Fix compile error of wamrc with llvm-13/llvm-14 (#2261)
This commit is contained in:
@ -4,7 +4,11 @@
|
||||
*/
|
||||
|
||||
#include <llvm-c/TargetMachine.h>
|
||||
#if LLVM_VERSION_MAJOR >= 14
|
||||
#include <llvm/MC/TargetRegistry.h>
|
||||
#else
|
||||
#include <llvm/Support/TargetRegistry.h>
|
||||
#endif
|
||||
#include <llvm/Target/TargetMachine.h>
|
||||
|
||||
#include "bh_assert.h"
|
||||
|
||||
Reference in New Issue
Block a user