fix typo, add 10.6 version of test for my previous patch.
authorChris Lattner <sabre@nondot.org>
Thu, 13 Aug 2009 05:43:33 +0000 (05:43 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 13 Aug 2009 05:43:33 +0000 (05:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78895 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/DarwinTargetAsmInfo.cpp
test/CodeGen/PowerPC/2008-12-12-EH.ll

index a37bf18a97a03f47939523c65d00f3604ca24a30..937d057568a707008b06f45f121435e28b054722 100644 (file)
@@ -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.
index 21218f55f039b581c4d8ea0b5269bfbe86e7cec3..1e2a2e42d0a976674e2bd559ee5a97d0f543d901 100644 (file)
@@ -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: