aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-05 11:28:02 -0500
committerAlon Zakai <alonzakai@gmail.com>2014-02-05 11:28:02 -0500
commit9e8413290fd026207086fe1b818ca0c11ca89909 (patch)
tree70c870c357b44be25ae477cfebbeadcbf3a88015 /lib
parente78b4dea6549d6cf40bfb08c82abaef70bd19248 (diff)
better unaligned log output
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/JSBackend/JSBackend.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/JSBackend/JSBackend.cpp b/lib/Target/JSBackend/JSBackend.cpp
index 86421599e5..b14172abe6 100644
--- a/lib/Target/JSBackend/JSBackend.cpp
+++ b/lib/Target/JSBackend/JSBackend.cpp
@@ -560,7 +560,7 @@ std::string JSWriter::getLoad(const Instruction *I, const Value *P, const Type *
} else {
// unaligned in some manner
if (WarnOnUnaligned) {
- errs() << "emcc: warning: unaligned load |" << *I << "|";
+ errs() << "emcc: warning: unaligned load in " << I->getParent()->getParent()->getName() << ":" << *I << " | ";
emitDebugInfo(errs(), I);
errs() << "\n";
}
@@ -654,7 +654,7 @@ std::string JSWriter::getStore(const Instruction *I, const Value *P, const Type
} else {
// unaligned in some manner
if (WarnOnUnaligned) {
- errs() << "emcc: warning: unaligned store |" << *I << "|";
+ errs() << "emcc: warning: unaligned store in " << I->getParent()->getParent()->getName() << ":" << *I << " | ";
emitDebugInfo(errs(), I);
errs() << "\n";
}