From 23348159f721b09e994c60e41eedd290fc0a1d95 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Tue, 11 Mar 2014 10:16:30 -0700 Subject: mention the function in the asm() error --- lib/Target/JSBackend/CallHandlers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/JSBackend/CallHandlers.h b/lib/Target/JSBackend/CallHandlers.h index 8ae8c26c1d..266b0596a6 100644 --- a/lib/Target/JSBackend/CallHandlers.h +++ b/lib/Target/JSBackend/CallHandlers.h @@ -1045,6 +1045,7 @@ void setupCallHandlers() { std::string handleCall(const Instruction *CI) { const Value *CV = getActuallyCalledValue(CI); if (isa(CV)) { + errs() << "In function " << CI->getParent()->getParent()->getName() << "()\n"; report_fatal_error("asm() not supported, use EM_ASM() (see emscripten.h)"); } -- cgit v1.2.3-18-g5258