mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
Dead code elimination
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7468 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6f334ad8f5
commit
accd8abeeb
@ -402,6 +402,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
switch (Action) {
|
switch (Action) {
|
||||||
|
case PrintRecords:
|
||||||
|
*Out << Records; // No argument, dump all contents
|
||||||
|
break;
|
||||||
case Parse:
|
case Parse:
|
||||||
ParseMachineCode();
|
ParseMachineCode();
|
||||||
break;
|
break;
|
||||||
@ -414,18 +417,8 @@ int main(int argc, char **argv) {
|
|||||||
case GenRegisterHeader:
|
case GenRegisterHeader:
|
||||||
RegisterInfoEmitter(Records).runHeader(*Out);
|
RegisterInfoEmitter(Records).runHeader(*Out);
|
||||||
break;
|
break;
|
||||||
case PrintRecords:
|
|
||||||
*Out << Records; // No argument, dump all contents
|
|
||||||
break;
|
|
||||||
case PrintEnums:
|
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);
|
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
|
||||||
|
|
||||||
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
|
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
|
||||||
*Out << Recs[i] << ", ";
|
*Out << Recs[i] << ", ";
|
||||||
*Out << "\n";
|
*Out << "\n";
|
||||||
|
@ -402,6 +402,9 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
switch (Action) {
|
switch (Action) {
|
||||||
|
case PrintRecords:
|
||||||
|
*Out << Records; // No argument, dump all contents
|
||||||
|
break;
|
||||||
case Parse:
|
case Parse:
|
||||||
ParseMachineCode();
|
ParseMachineCode();
|
||||||
break;
|
break;
|
||||||
@ -414,18 +417,8 @@ int main(int argc, char **argv) {
|
|||||||
case GenRegisterHeader:
|
case GenRegisterHeader:
|
||||||
RegisterInfoEmitter(Records).runHeader(*Out);
|
RegisterInfoEmitter(Records).runHeader(*Out);
|
||||||
break;
|
break;
|
||||||
case PrintRecords:
|
|
||||||
*Out << Records; // No argument, dump all contents
|
|
||||||
break;
|
|
||||||
case PrintEnums:
|
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);
|
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
|
||||||
|
|
||||||
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
|
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
|
||||||
*Out << Recs[i] << ", ";
|
*Out << Recs[i] << ", ";
|
||||||
*Out << "\n";
|
*Out << "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user