@@ -39,13 +39,12 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"));
39
39
40
40
static cl::opt<bool > Force (" f" , cl::desc(" Overwrite output files" ));
41
41
42
- enum ArchName { noarch, X86, SparcV9, PowerPC, CBackend };
42
+ enum ArchName { noarch, X86, SparcV9, CBackend };
43
43
44
44
static cl::opt<ArchName>
45
45
Arch (" march" , cl::desc(" Architecture to generate assembly for:" ), cl::Prefix,
46
46
cl::values(clEnumValN(X86, " x86" , " IA-32 (Pentium and above)" ),
47
47
clEnumValN(SparcV9, " sparcv9" , " SPARC V9" ),
48
- clEnumValN(PowerPC, " powerpc" , " PowerPC (experimental)" ),
49
48
clEnumValN(CBackend, " c" , " C backend" ),
50
49
0),
51
50
cl::init(noarch));
@@ -95,9 +94,6 @@ int main(int argc, char **argv) {
95
94
case SparcV9:
96
95
TargetMachineAllocator = allocateSparcV9TargetMachine;
97
96
break ;
98
- case PowerPC:
99
- TargetMachineAllocator = allocatePowerPCTargetMachine;
100
- break ;
101
97
default :
102
98
// Decide what the default target machine should be, by looking at
103
99
// the module. This heuristic (ILP32, LE -> IA32; LP64, BE ->
@@ -106,9 +102,6 @@ int main(int argc, char **argv) {
106
102
if (mod.getEndianness () == Module::LittleEndian &&
107
103
mod.getPointerSize () == Module::Pointer32) {
108
104
TargetMachineAllocator = allocateX86TargetMachine;
109
- } else if (mod.getEndianness () == Module::BigEndian &&
110
- mod.getPointerSize () == Module::Pointer32) {
111
- TargetMachineAllocator = allocatePowerPCTargetMachine;
112
105
} else if (mod.getEndianness () == Module::BigEndian &&
113
106
mod.getPointerSize () == Module::Pointer64) {
114
107
TargetMachineAllocator = allocateSparcV9TargetMachine;
@@ -119,8 +112,6 @@ int main(int argc, char **argv) {
119
112
TargetMachineAllocator = allocateX86TargetMachine;
120
113
#elif defined(sparc) || defined(__sparc__) || defined(__sparcv9)
121
114
TargetMachineAllocator = allocateSparcV9TargetMachine;
122
- #elif defined(__POWERPC__) || defined(__ppc__) || defined(__APPLE__)
123
- TargetMachineAllocator = allocatePowerPCTargetMachine;
124
115
#else
125
116
std::cerr << argv[0 ] << " : module does not specify a target to use. "
126
117
<< " You must use the -march option. If no native target is "
0 commit comments