summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-13 05:43:33 +0000
committerChris Lattner <sabre@nondot.org>2009-08-13 05:43:33 +0000
commit00a8de054c9e6498a2f4ef00b3a7eeabf7a4ed0f (patch)
tree79a72427e641cc1f4f50066fef99a7c982ca35b2
parent58e8be847c4b33e40d2edf29c9d47763936580c5 (diff)
downloadbcm5719-llvm-00a8de054c9e6498a2f4ef00b3a7eeabf7a4ed0f.tar.gz
bcm5719-llvm-00a8de054c9e6498a2f4ef00b3a7eeabf7a4ed0f.zip
fix typo, add 10.6 version of test for my previous patch.
llvm-svn: 78895
-rw-r--r--llvm/lib/Target/DarwinTargetAsmInfo.cpp4
-rw-r--r--llvm/test/CodeGen/PowerPC/2008-12-12-EH.ll1
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/DarwinTargetAsmInfo.cpp b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
index a37bf18a97a..937d057568a 100644
--- a/llvm/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/llvm/lib/Target/DarwinTargetAsmInfo.cpp
@@ -48,10 +48,10 @@ DarwinTargetAsmInfo::DarwinTargetAsmInfo(const Triple &Triple) {
HasDotTypeDotSizeDirective = false;
UsedDirective = "\t.no_dead_strip\t";
- // On Leoaprd (10.5 aka darwin9) and earlier, _foo.eh symbols must be exported
+ // On Leopard (10.5 aka darwin9) and earlier, _foo.eh symbols must be exported
// so that the linker knows about them. This is not necessary on 10.6 and
// later, but it doesn't hurt anything.
- if (Triple.getDarwinMajorNumber() >= 10)
+ if (Triple.getDarwinMajorNumber() < 10)
Is_EHSymbolPrivate = false;
// Leopard (10.5 aka darwin9) and later support aligned common symbols.
diff --git a/llvm/test/CodeGen/PowerPC/2008-12-12-EH.ll b/llvm/test/CodeGen/PowerPC/2008-12-12-EH.ll
index 21218f55f03..1e2a2e42d0a 100644
--- a/llvm/test/CodeGen/PowerPC/2008-12-12-EH.ll
+++ b/llvm/test/CodeGen/PowerPC/2008-12-12-EH.ll
@@ -1,5 +1,6 @@
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | grep ^.L_Z1fv.eh
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin9 | grep ^__Z1fv.eh
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin10 | grep ^L__Z1fv.eh
define void @_Z1fv() {
entry:
OpenPOWER on IntegriCloud