diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-07 05:45:33 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-07 05:45:33 +0000 | 
| commit | 5ea0ee7b19c7e64532e9e1cb85b8f6eeb0b06062 (patch) | |
| tree | 1affbe38ebbbd5cd591169c0a4195acdcd86860b /llvm | |
| parent | 8d0e9d90aaf9475dbfcf1cb712a581a071d07cf0 (diff) | |
| download | bcm5719-llvm-5ea0ee7b19c7e64532e9e1cb85b8f6eeb0b06062.tar.gz bcm5719-llvm-5ea0ee7b19c7e64532e9e1cb85b8f6eeb0b06062.zip  | |
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.
llvm-svn: 23257
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp index 3196f09ff25..62f36c69262 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.cpp +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.cpp @@ -123,7 +123,7 @@ PPCSubtarget::PPCSubtarget(const Module &M, const std::string &FS)    : 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  | 

