1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00

Dead code elimination

llvm-svn: 7468
This commit is contained in:
Chris Lattner 2003-08-01 04:47:20 +00:00
parent 0177241fa7
commit 97eebed243

View File

@ -402,6 +402,9 @@ int main(int argc, char **argv) {
try {
switch (Action) {
case PrintRecords:
*Out << Records; // No argument, dump all contents
break;
case Parse:
ParseMachineCode();
break;
@ -414,18 +417,8 @@ int main(int argc, char **argv) {
case GenRegisterHeader:
RegisterInfoEmitter(Records).runHeader(*Out);
break;
case PrintRecords:
*Out << Records; // No argument, dump all contents
break;
case PrintEnums:
Record *R = Records.getClass(Class);
if (R == 0) {
std::cerr << "Cannot find class '" << Class << "'!\n";
abort();
}
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
*Out << Recs[i] << ", ";
*Out << "\n";