llvm-svn: 129835
This commit is contained in:
Daniel Dunbar 2011-04-19 23:34:21 +00:00
parent 308cfd045f
commit fcd2389b7a
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts,
}
} else {
Triple.getOSVersion(Maj, Min, Rev);
PlatformName = Triple.getOSName();
PlatformName = llvm::Triple::getOSTypeName(Triple.getOS());
}
}

View File

@ -4,8 +4,8 @@
// RUN: -c %s 2> %t
// RUN: FileCheck --check-prefix=CHECK-COMPILE < %t %s
//
// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "i386-apple-osx10.4.0"
// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "x86_64-apple-osx10.5.0"
// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "i386-apple-macosx10.4.0"
// CHECK-COMPILE: clang{{.*}}" "-cc1" "-triple" "x86_64-apple-macosx10.5.0"
// RUN: %clang -ccc-host-triple x86_64-apple-darwin10 -### \
// RUN: -arch i386 -Xarch_i386 -Wl,-some-linker-arg -filelist X 2> %t