aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commitc98d8236490666ad3f5c9224226bda12269fed77 (patch)
tree7a84498690fe54ffb68407930bcddc6ae602f3ba /lib/Target
parent3eb3369a251db620a5a07ddacb49b4cdd9952dd5 (diff)
downloadexternal_llvm-c98d8236490666ad3f5c9224226bda12269fed77.zip
external_llvm-c98d8236490666ad3f5c9224226bda12269fed77.tar.gz
external_llvm-c98d8236490666ad3f5c9224226bda12269fed77.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp
index 3196f09..62f36c6 100644
--- a/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/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