Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: src/IceTargetLowering.h

Issue 1639923002: Subzero. ARM32. Vector lowering. Subtract. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/IceTargetLowering.h
diff --git a/src/IceTargetLowering.h b/src/IceTargetLowering.h
index f8355b93aaa734e2f0da9a9fbfa98f01e9bd521a..bea6a16e6258337a5760b43928815cbf697034fe 100644
--- a/src/IceTargetLowering.h
+++ b/src/IceTargetLowering.h
@@ -29,6 +29,8 @@
#include "IceOperand.h"
#include "IceTypes.h"
+#include "llvm/Support/raw_ostream.h"
+
#include <utility>
namespace Ice {
@@ -53,9 +55,12 @@ namespace Ice {
if ((Target)->Ctx->getFlags().getSkipUnimplemented()) { \
(Target)->addFakeDefUses(Instr); \
} else { \
+ std::string Buffer; \
+ llvm::raw_string_ostream StrBuf(Buffer); \
+ StrBuf << "Not yet implemented: " << Instr->getInstName(); \
/* Use llvm_unreachable instead of report_fatal_error, which gives \
better stack traces. */ \
- llvm_unreachable("Not yet implemented"); \
+ llvm_unreachable(StrBuf.str().c_str()); \
John 2016/01/26 19:07:17 just do llvm_unreachable("Not yet implemented: "
Eric Holk 2016/01/26 22:49:24 Ok.
abort(); \
} \
} while (0)
« src/IceInstARM32.cpp ('K') | « src/IceInstARM32.cpp ('k') | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698