[llvm-commits] [gcc-plugin] r82469 - /gcc-plugin/trunk/utils/target.cpp
Duncan Sands
baldrick at free.fr
Mon Sep 21 11:28:02 PDT 2009
Author: baldrick
Date: Mon Sep 21 13:28:02 2009
New Revision: 82469
URL: http://llvm.org/viewvc/llvm-project?rev=82469&view=rev
Log:
Print "darwin" rather than "darwin9.8.0" or whatever
when using the -o option.
Modified:
gcc-plugin/trunk/utils/target.cpp
Modified: gcc-plugin/trunk/utils/target.cpp
URL: http://llvm.org/viewvc/llvm-project/gcc-plugin/trunk/utils/target.cpp?rev=82469&r1=82468&r2=82469&view=diff
==============================================================================
--- gcc-plugin/trunk/utils/target.cpp (original)
+++ gcc-plugin/trunk/utils/target.cpp Mon Sep 21 13:28:02 2009
@@ -14,8 +14,8 @@
static void PrintVendorName(Triple &T) {
std::cout << T.getVendorName().str() << "\n";
}
-static void PrintOSName(Triple &T) {
- std::cout << T.getOSName().str() << "\n";
+static void PrintOSTypeName(Triple &T) {
+ std::cout << T.getOSTypeName(T.getOS()) << "\n";
}
static void PrintEnvironmentName(Triple &T) {
std::cout << T.getEnvironmentName().str() << "\n";
@@ -36,7 +36,7 @@
{ "-t", PrintTriple },
{ "-a", PrintArchName },
{ "-v", PrintVendorName },
- { "-o", PrintOSName },
+ { "-o", PrintOSTypeName },
{ "-e", PrintEnvironmentName },
{ "-oe", PrintOSAndEnvironmentName },
{ "-p", PrintArchTypePrefix },
More information about the llvm-commits
mailing list