diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-03-11 10:16:30 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-03-11 10:16:30 -0700 |
commit | 23348159f721b09e994c60e41eedd290fc0a1d95 (patch) | |
tree | 3009c3786dfdbc76a3e1b53b8fe423166c8d064e | |
parent | fbe6167366c394327e9fe0c8025f0045b22f21c6 (diff) |
mention the function in the asm() error
-rw-r--r-- | lib/Target/JSBackend/CallHandlers.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<InlineAsm>(CV)) { + errs() << "In function " << CI->getParent()->getParent()->getName() << "()\n"; report_fatal_error("asm() not supported, use EM_ASM() (see emscripten.h)"); } |