diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-07-13 00:29:09 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-07-13 00:29:09 +0000 |
commit | 1af8c8060cd2ff4966fad80190668a4c285fa67e (patch) | |
tree | 9e693f5503c90da0cb196375069457e06972f392 /llvm/lib/CodeGen | |
parent | 4592cbc47393ee34fce21e1c65d0e524cc4823b6 (diff) | |
download | bcm5719-llvm-1af8c8060cd2ff4966fad80190668a4c285fa67e.tar.gz bcm5719-llvm-1af8c8060cd2ff4966fad80190668a4c285fa67e.zip |
Provide function name in 'Cannot select' fatal error.
When dumping the DAG for a fatal 'Cannot select' back-end error, also
provide the name of the function the construct is in. Useful when dealing
with large testcases, as the next step is to llvm-extract the function
in question to get a small(er) testcase.
llvm-svn: 160152
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 90f2bd37b23..287c679f975 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -2981,6 +2981,7 @@ void SelectionDAGISel::CannotYetSelect(SDNode *N) { N->getOpcode() != ISD::INTRINSIC_WO_CHAIN && N->getOpcode() != ISD::INTRINSIC_VOID) { N->printrFull(Msg, CurDAG); + Msg << "\nIn function: " << MF->getFunction()->getName(); } else { bool HasInputChain = N->getOperand(0).getValueType() == MVT::Other; unsigned iid = |