fix typo, add 10.6 version of test for my previous patch.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78895 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/DarwinTargetAsmInfo.cpp b/lib/Target/DarwinTargetAsmInfo.cpp
index a37bf18..937d057 100644
--- a/lib/Target/DarwinTargetAsmInfo.cpp
+++ b/lib/Target/DarwinTargetAsmInfo.cpp
@@ -48,10 +48,10 @@
   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.