[llvm-commits] [dragonegg] r99393 - /dragonegg/trunk/utils/target.cpp
Duncan Sands
baldrick at free.fr
Wed Mar 24 02:47:41 PDT 2010
Author: baldrick
Date: Wed Mar 24 04:47:41 2010
New Revision: 99393
URL: http://llvm.org/viewvc/llvm-project?rev=99393&view=rev
Log:
Always used parsed values, rather than accessing triple components
directly. Get rid of accessors for the environment, since they are
not used.
Modified:
dragonegg/trunk/utils/target.cpp
Modified: dragonegg/trunk/utils/target.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/utils/target.cpp?rev=99393&r1=99392&r2=99393&view=diff
==============================================================================
--- dragonegg/trunk/utils/target.cpp (original)
+++ dragonegg/trunk/utils/target.cpp Wed Mar 24 04:47:41 2010
@@ -9,20 +9,14 @@
std::cout << T.getTriple() << "\n";
}
static void PrintArchName(Triple &T) {
- std::cout << T.getArchName().str() << "\n";
+ std::cout << T.getArchTypeName(T.getArch()) << "\n";
}
static void PrintVendorName(Triple &T) {
- std::cout << T.getVendorName().str() << "\n";
+ std::cout << T.getVendorTypeName(T.getVendor()) << "\n";
}
-static void PrintOSTypeName(Triple &T) {
+static void PrintOSName(Triple &T) {
std::cout << T.getOSTypeName(T.getOS()) << "\n";
}
-static void PrintEnvironmentName(Triple &T) {
- std::cout << T.getEnvironmentName().str() << "\n";
-}
-static void PrintOSAndEnvironmentName(Triple &T) {
- std::cout << T.getOSAndEnvironmentName().str() << "\n";
-}
static void PrintArchTypePrefix(Triple &T) {
std::cout << T.getArchTypePrefix(T.getArch()) << "\n";
}
@@ -36,9 +30,7 @@
{ "-t", PrintTriple },
{ "-a", PrintArchName },
{ "-v", PrintVendorName },
- { "-o", PrintOSTypeName },
- { "-e", PrintEnvironmentName },
- { "-oe", PrintOSAndEnvironmentName },
+ { "-o", PrintOSName },
{ "-p", PrintArchTypePrefix },
{ NULL, NULL }
};
More information about the llvm-commits
mailing list