[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 6 22:45:44 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PowerPCSubtarget.cpp updated: 1.7 -> 1.8
---
Log message:

On non-apple systems, when using -march=ppc32, do not print:

'' is not a recognized processor for this target (ignoring processor)

Default to "generic" instead of "" for the default CPU.



---
Diffs of the changes:  (+1 -1)

 PowerPCSubtarget.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp
diff -u llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.7 llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.8
--- llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp:1.7	Tue Sep  6 10:30:12 2005
+++ llvm/lib/Target/PowerPC/PowerPCSubtarget.cpp	Wed Sep  7 00:45:33 2005
@@ -123,7 +123,7 @@
   : StackAlignment(16), IsGigaProcessor(false), IsAIX(false), IsDarwin(false) {
 
   // Determine default and user specified characteristics
-  std::string CPU;
+  std::string CPU = "generic";
 #if defined(__APPLE__)
   CPU = GetCurrentPowerPCCPU();
 #endif






More information about the llvm-commits mailing list