[llvm-commits] [hlvm] r38262 - /hlvm/trunk/tools/hlvm-config/hlvm-config.cpp
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:01:44 PDT 2007
Author: reid
Date: Sat Jul 7 19:01:44 2007
New Revision: 38262
URL: http://llvm.org/viewvc/llvm-project?rev=38262&view=rev
Log:
Update for changes to Node.h. Print a warning message if it ever gets out of
date.
Modified:
hlvm/trunk/tools/hlvm-config/hlvm-config.cpp
Modified: hlvm/trunk/tools/hlvm-config/hlvm-config.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/tools/hlvm-config/hlvm-config.cpp?rev=38262&r1=38261&r2=38262&view=diff
==============================================================================
--- hlvm/trunk/tools/hlvm-config/hlvm-config.cpp (original)
+++ hlvm/trunk/tools/hlvm-config/hlvm-config.cpp Sat Jul 7 19:01:44 2007
@@ -85,7 +85,6 @@
"Class",
"Method",
"Implements",
- "ConstantZero",
"ConstantBoolean",
"ConstantInteger",
"ConstantReal",
@@ -103,6 +102,7 @@
"NInfOp",
"NaNOp",
"ReferenceOp",
+ "ConstantReferenceOp",
"NoOperator",
"ReturnOp",
"ThrowOp",
@@ -186,13 +186,14 @@
if (ShowNodeIds)
{
unsigned rowcount = 4;
- for (unsigned i = FirstNodeID; i < LastNodeID; i++) {
+ for (unsigned i = FirstNodeID; i <= LastNodeID; i++) {
if (rowcount % 4 == 0)
std::cout << "\n";
std::cout << " " << i << ":" << NodeIDStrs[i];
rowcount++;
}
- std::cout << "Number of NodeIDs: " << NumNodeIDs << "\n";
+
+ std::cout << "\n\nNumber of NodeIDs: " << NumNodeIDs << "\n";
std::cout << "Nodes: "
<< FirstNodeID << " -> "
<< LastNodeID << "\n";
@@ -247,6 +248,9 @@
std::cout << "MultiOperators: "
<< FirstMultiOperatorID << " -> "
<< LastMultiOperatorID << "\n";
+ if (sizeof(NodeIDStrs)/sizeof(NodeIDStrs[0]) != NumNodeIDs)
+ std::cout << "\n**##!! NodeIDStrs Out Of Date !!##**\n";
+
}
return 0;
}
More information about the llvm-commits
mailing list