summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-07 05:45:33 +0000
committerChris Lattner <sabre@nondot.org>2005-09-07 05:45:33 +0000
commit5ea0ee7b19c7e64532e9e1cb85b8f6eeb0b06062 (patch)
tree1affbe38ebbbd5cd591169c0a4195acdcd86860b /llvm/lib
parent8d0e9d90aaf9475dbfcf1cb712a581a071d07cf0 (diff)
downloadbcm5719-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/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.cpp2
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
OpenPOWER on IntegriCloud