Set LLVM_USE_PERF to 0 on hally.cpp as a hacky fix for llvm's apt bug on ARM

This commit is contained in:
Sameer Rahmani 2022-06-18 10:42:07 +01:00
parent 114d60999d
commit b1858524e1
1 changed files with 4 additions and 16 deletions

View File

@ -108,24 +108,12 @@ Halley::Halley(std::unique_ptr<SereneContext> ctx,
: nullptr),
perfListener(
// TODO: [llvm] Remove this line when apt.llvm.org fixed the undefined symbol
// for createPerfJITListener
#define LLVM_USE_PERF 1
#if LLVM_USE_PERF
// for createPerfJITEventListener
#define LLVM_USE_PERF 0
ctx->opts.JITenablePerfNotificationListener
? llvm::JITEventListener::createPerfJITEventListener()
: nullptr
#else
nullptr
#endif
),
jtmb(jtmb), dl(dl), ctx(std::move(ctx)) {
#if LLVM_USE_PERF
#include <hnt>;
#else
#include <fallllllse>
#endif
};
: nullptr),
jtmb(jtmb), dl(dl), ctx(std::move(ctx)){};
// MaybeJITPtr Halley::lookup(exprs::Symbol &sym) const {
// HALLEY_LOG("Looking up: " << sym.toString());