#include "llvm/ADT/StringMap.h"
#include "llvm/ExecutionEngine/Orc/DebugUtils.h"
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
#include "llvm/ExecutionEngine/Orc/ObjectTransformLayer.h"
#include "llvm/Support/InitLLVM.h"
#include "llvm/Support/TargetSelect.h"
#include "llvm/Support/raw_ostream.h"
#include "../ExampleModules.h"
usingnamespacellvm;
usingnamespacellvm::orc;
ExitOnError ExitOnErr;
cl::opt<bool> DumpJITdObjects("dump-jitted-objects",
cl::desc("dump jitted objects"), cl::Optional,
cl::init(true));
cl::opt<std::string> DumpDir("dump-dir",
cl::desc("directory to dump objects to"),
cl::Optional, cl::init(""));
cl::opt<std::string> DumpFileStem("dump-file-stem",
cl::desc("Override default dump names"),
cl::Optional, cl::init(""));
int main(int argc, char *argv[]) { … }