2020-02-12 01:01:41 +01:00
|
|
|
// The Construct
|
|
|
|
//
|
|
|
|
// Copyright (C) The Construct Developers
|
|
|
|
// Copyright (C) 2016-2020 Jason Volk <jason@zemos.net>
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and/or distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice is present in all copies. The
|
|
|
|
// full license for this software is available in the LICENSE file.
|
|
|
|
|
2020-02-19 00:48:59 +01:00
|
|
|
#include <llvm/Config/llvm-config.h>
|
2020-02-12 01:01:41 +01:00
|
|
|
#include <llvm/Object/Wasm.h>
|
|
|
|
|
|
|
|
namespace ircd::llvm
|
|
|
|
{
|
2020-02-19 00:48:59 +01:00
|
|
|
extern info::versions version_api, version_abi;
|
|
|
|
|
2020-02-12 01:01:41 +01:00
|
|
|
static void init(), fini();
|
|
|
|
}
|
|
|
|
|
|
|
|
ircd::mapi::header
|
|
|
|
IRCD_MODULE
|
|
|
|
{
|
|
|
|
"LLVM Compiler Infrastructure",
|
|
|
|
ircd::llvm::init,
|
|
|
|
ircd::llvm::fini,
|
|
|
|
};
|
|
|
|
|
2020-02-19 00:48:59 +01:00
|
|
|
decltype(ircd::llvm::version_api)
|
|
|
|
ircd::llvm::version_api
|
|
|
|
{
|
|
|
|
"llvm", info::versions::API, 0,
|
|
|
|
{
|
|
|
|
LLVM_VERSION_MAJOR,
|
|
|
|
LLVM_VERSION_MINOR,
|
|
|
|
LLVM_VERSION_PATCH,
|
|
|
|
},
|
|
|
|
LLVM_VERSION_STRING,
|
|
|
|
};
|
|
|
|
|
|
|
|
decltype(ircd::llvm::version_abi)
|
|
|
|
ircd::llvm::version_abi
|
|
|
|
{
|
|
|
|
"llvm", info::versions::ABI, 0
|
|
|
|
};
|
|
|
|
|
2020-02-12 01:01:41 +01:00
|
|
|
void
|
|
|
|
ircd::llvm::init()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ircd::llvm::fini()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|