summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5cf55e1)
raw | patch | inline | side by side (parent: 5cf55e1)
author | Jim Grosbach <grosbach@apple.com> | |
Fri, 13 Jul 2012 00:29:09 +0000 (00:29 +0000) | ||
committer | Jim Grosbach <grosbach@apple.com> | |
Fri, 13 Jul 2012 00:29:09 +0000 (00:29 +0000) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160152 91177308-0d34-0410-b5e6-96231b3b80d8
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160152 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | patch | blob | history |
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 90f2bd37b237c9471627ae8d693f765d16df626a..287c679f97535365a1351b19ca5cc9e4c2ae7899 100644 (file)
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 =