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

Unified Diff: src/IceTargetLoweringX86BaseImpl.h

Issue 1677593003: Subzero: Improve an error message. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceTargetLoweringX86BaseImpl.h
diff --git a/src/IceTargetLoweringX86BaseImpl.h b/src/IceTargetLoweringX86BaseImpl.h
index 984c66df0c6f7eb23c59f6355ad1ffe68f1ac284..6ffa5604338ded5b9058f43f1e7f180dd5b950aa 100644
--- a/src/IceTargetLoweringX86BaseImpl.h
+++ b/src/IceTargetLoweringX86BaseImpl.h
@@ -884,8 +884,9 @@ void TargetX86Base<TraitsType>::emitVariable(const Variable *Var) const {
return;
}
if (Var->mustHaveReg()) {
- llvm::report_fatal_error(
- "Infinite-weight Variable has no register assigned");
+ llvm::report_fatal_error("Infinite-weight Variable (" + Var->getName(Func) +
+ ") has no register assigned - function " +
+ Func->getFunctionName());
}
const int32_t Offset = Var->getStackOffset();
int32_t BaseRegNum = Var->getBaseRegNum();
@@ -913,8 +914,9 @@ TargetX86Base<TraitsType>::stackVarToAsmOperand(const Variable *Var) const {
if (Var->hasReg())
llvm::report_fatal_error("Stack Variable has a register assigned");
if (Var->mustHaveReg()) {
- llvm::report_fatal_error(
- "Infinite-weight Variable has no register assigned");
+ llvm::report_fatal_error("Infinite-weight Variable (" + Var->getName(Func) +
+ ") has no register assigned - function " +
+ Func->getFunctionName());
}
int32_t Offset = Var->getStackOffset();
int32_t BaseRegNum = Var->getBaseRegNum();
« no previous file with comments | « src/IceTargetLoweringARM32.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698