#include<clang-c/Index.h>// If this fails, libclang headers aren't available. Please take a look here: https://tinygo.org/docs/guides/build/
#include<clang-c/Index.h>// If this fails, libclang headers aren't available. Please take a look here: https://tinygo.org/docs/guides/build/
#include<llvm/Config/llvm-config.h>
#include<stdlib.h>
#include<stdlib.h>
#include<stdint.h>
#include<stdint.h>
@ -76,6 +79,16 @@ var diagnosticSeverity = [...]string{
// theory decoupled from Clang) can also use this type.
// theory decoupled from Clang) can also use this type.
typeclangCursor=C.GoCXCursor
typeclangCursor=C.GoCXCursor
funcinit(){
// Check that we haven't messed up LLVM versioning.
// This can happen when llvm_config_*.go files in either this or the
// tinygo.org/x/go-llvm packages is incorrect. It should not ever happen
// with byollvm.
ifC.LLVM_VERSION_STRING!=llvm.Version{
panic("incorrect build: using LLVM version "+llvm.Version+" in the tinygo.org/x/llvm package, and version "+C.LLVM_VERSION_STRING+" in the ./cgo package")