Skip to content

Commit 8734056

Browse files
author
John Criswell
committed
Removed PowerPC code generation options from llc. The PowerPC code
generator isn't even at an experimental stage (if I understand the comments correctly). llvm-svn: 12501
1 parent d118722 commit 8734056

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

llvm/tools/llc/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ TOOLNAME = llc
1111
USEDLIBS = cwriter \
1212
sparcv9 \
1313
x86 \
14-
powerpc \
1514
selectiondag \
1615
sparcv9regalloc \
1716
sched \

llvm/tools/llc/llc.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename"));
3939

4040
static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
4141

42-
enum ArchName { noarch, X86, SparcV9, PowerPC, CBackend };
42+
enum ArchName { noarch, X86, SparcV9, CBackend };
4343

4444
static cl::opt<ArchName>
4545
Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix,
4646
cl::values(clEnumValN(X86, "x86", " IA-32 (Pentium and above)"),
4747
clEnumValN(SparcV9, "sparcv9", " SPARC V9"),
48-
clEnumValN(PowerPC, "powerpc", " PowerPC (experimental)"),
4948
clEnumValN(CBackend, "c", " C backend"),
5049
0),
5150
cl::init(noarch));
@@ -95,9 +94,6 @@ int main(int argc, char **argv) {
9594
case SparcV9:
9695
TargetMachineAllocator = allocateSparcV9TargetMachine;
9796
break;
98-
case PowerPC:
99-
TargetMachineAllocator = allocatePowerPCTargetMachine;
100-
break;
10197
default:
10298
// Decide what the default target machine should be, by looking at
10399
// the module. This heuristic (ILP32, LE -> IA32; LP64, BE ->
@@ -106,9 +102,6 @@ int main(int argc, char **argv) {
106102
if (mod.getEndianness() == Module::LittleEndian &&
107103
mod.getPointerSize() == Module::Pointer32) {
108104
TargetMachineAllocator = allocateX86TargetMachine;
109-
} else if (mod.getEndianness() == Module::BigEndian &&
110-
mod.getPointerSize() == Module::Pointer32) {
111-
TargetMachineAllocator = allocatePowerPCTargetMachine;
112105
} else if (mod.getEndianness() == Module::BigEndian &&
113106
mod.getPointerSize() == Module::Pointer64) {
114107
TargetMachineAllocator = allocateSparcV9TargetMachine;
@@ -119,8 +112,6 @@ int main(int argc, char **argv) {
119112
TargetMachineAllocator = allocateX86TargetMachine;
120113
#elif defined(sparc) || defined(__sparc__) || defined(__sparcv9)
121114
TargetMachineAllocator = allocateSparcV9TargetMachine;
122-
#elif defined(__POWERPC__) || defined(__ppc__) || defined(__APPLE__)
123-
TargetMachineAllocator = allocatePowerPCTargetMachine;
124115
#else
125116
std::cerr << argv[0] << ": module does not specify a target to use. "
126117
<< "You must use the -march option. If no native target is "

0 commit comments

Comments
 (0)