Fix build error with LLVM 16 (#2259)

This commit is contained in:
YAMAMOTO Takashi
2023-06-06 14:45:18 +09:00
committed by GitHub
parent 5d69f364db
commit 6e3c3fe9ec
10 changed files with 13 additions and 7 deletions

View File

@ -4,6 +4,8 @@
*/
#include <llvm-c/TargetMachine.h>
#include <llvm/ADT/None.h>
#include <llvm/ADT/Optional.h>
#if LLVM_VERSION_MAJOR >= 14
#include <llvm/MC/TargetRegistry.h>
#else