use node info in the one place we currently use it
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23280 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index cae8fe3..6bace11 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -391,7 +391,7 @@
if (!CI->getValue().empty()) {
assert(!P->getTrees()[0]->isLeaf() && "Can't be a leaf!");
std::string ClassName =
- P->getTrees()[0]->getOperator()->getValueAsString("SDClass");
+ getSDNodeInfo(P->getTrees()[0]->getOperator()).getSDClassName();
const char *C2 = ClassName == "SDNode" ? "N" : "inN";
OS << "static inline bool Predicate_" << Fragments[i]->getName()