Loading llvm/tools/llc/Makefile +0 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ TOOLNAME = llc USEDLIBS = cwriter \ sparcv9 \ x86 \ powerpc \ selectiondag \ sparcv9regalloc \ sched \ Loading llvm/tools/llc/llc.cpp +1 −10 Original line number Diff line number Diff line Loading @@ -39,13 +39,12 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); static cl::opt<bool> Force("f", cl::desc("Overwrite output files")); enum ArchName { noarch, X86, SparcV9, PowerPC, CBackend }; enum ArchName { noarch, X86, SparcV9, CBackend }; static cl::opt<ArchName> Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix, cl::values(clEnumValN(X86, "x86", " IA-32 (Pentium and above)"), clEnumValN(SparcV9, "sparcv9", " SPARC V9"), clEnumValN(PowerPC, "powerpc", " PowerPC (experimental)"), clEnumValN(CBackend, "c", " C backend"), 0), cl::init(noarch)); Loading Loading @@ -95,9 +94,6 @@ int main(int argc, char **argv) { case SparcV9: TargetMachineAllocator = allocateSparcV9TargetMachine; break; case PowerPC: TargetMachineAllocator = allocatePowerPCTargetMachine; break; default: // Decide what the default target machine should be, by looking at // the module. This heuristic (ILP32, LE -> IA32; LP64, BE -> Loading @@ -106,9 +102,6 @@ int main(int argc, char **argv) { if (mod.getEndianness() == Module::LittleEndian && mod.getPointerSize() == Module::Pointer32) { TargetMachineAllocator = allocateX86TargetMachine; } else if (mod.getEndianness() == Module::BigEndian && mod.getPointerSize() == Module::Pointer32) { TargetMachineAllocator = allocatePowerPCTargetMachine; } else if (mod.getEndianness() == Module::BigEndian && mod.getPointerSize() == Module::Pointer64) { TargetMachineAllocator = allocateSparcV9TargetMachine; Loading @@ -119,8 +112,6 @@ int main(int argc, char **argv) { TargetMachineAllocator = allocateX86TargetMachine; #elif defined(sparc) || defined(__sparc__) || defined(__sparcv9) TargetMachineAllocator = allocateSparcV9TargetMachine; #elif defined(__POWERPC__) || defined(__ppc__) || defined(__APPLE__) TargetMachineAllocator = allocatePowerPCTargetMachine; #else std::cerr << argv[0] << ": module does not specify a target to use. " << "You must use the -march option. If no native target is " Loading Loading
llvm/tools/llc/Makefile +0 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,6 @@ TOOLNAME = llc USEDLIBS = cwriter \ sparcv9 \ x86 \ powerpc \ selectiondag \ sparcv9regalloc \ sched \ Loading
llvm/tools/llc/llc.cpp +1 −10 Original line number Diff line number Diff line Loading @@ -39,13 +39,12 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); static cl::opt<bool> Force("f", cl::desc("Overwrite output files")); enum ArchName { noarch, X86, SparcV9, PowerPC, CBackend }; enum ArchName { noarch, X86, SparcV9, CBackend }; static cl::opt<ArchName> Arch("march", cl::desc("Architecture to generate assembly for:"), cl::Prefix, cl::values(clEnumValN(X86, "x86", " IA-32 (Pentium and above)"), clEnumValN(SparcV9, "sparcv9", " SPARC V9"), clEnumValN(PowerPC, "powerpc", " PowerPC (experimental)"), clEnumValN(CBackend, "c", " C backend"), 0), cl::init(noarch)); Loading Loading @@ -95,9 +94,6 @@ int main(int argc, char **argv) { case SparcV9: TargetMachineAllocator = allocateSparcV9TargetMachine; break; case PowerPC: TargetMachineAllocator = allocatePowerPCTargetMachine; break; default: // Decide what the default target machine should be, by looking at // the module. This heuristic (ILP32, LE -> IA32; LP64, BE -> Loading @@ -106,9 +102,6 @@ int main(int argc, char **argv) { if (mod.getEndianness() == Module::LittleEndian && mod.getPointerSize() == Module::Pointer32) { TargetMachineAllocator = allocateX86TargetMachine; } else if (mod.getEndianness() == Module::BigEndian && mod.getPointerSize() == Module::Pointer32) { TargetMachineAllocator = allocatePowerPCTargetMachine; } else if (mod.getEndianness() == Module::BigEndian && mod.getPointerSize() == Module::Pointer64) { TargetMachineAllocator = allocateSparcV9TargetMachine; Loading @@ -119,8 +112,6 @@ int main(int argc, char **argv) { TargetMachineAllocator = allocateX86TargetMachine; #elif defined(sparc) || defined(__sparc__) || defined(__sparcv9) TargetMachineAllocator = allocateSparcV9TargetMachine; #elif defined(__POWERPC__) || defined(__ppc__) || defined(__APPLE__) TargetMachineAllocator = allocatePowerPCTargetMachine; #else std::cerr << argv[0] << ": module does not specify a target to use. " << "You must use the -march option. If no native target is " Loading