[llvm-commits] [llvm] r118978 - /llvm/trunk/include/llvm/ADT/Triple.h
Jim Grosbach
grosbach at apple.com
Fri Nov 12 20:17:15 PST 2010
Author: grosbach
Date: Fri Nov 12 22:17:15 2010
New Revision: 118978
URL: http://llvm.org/viewvc/llvm-project?rev=118978&view=rev
Log:
Trailing whitespace.
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=118978&r1=118977&r2=118978&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Fri Nov 12 22:17:15 2010
@@ -45,7 +45,7 @@
public:
enum ArchType {
UnknownArch,
-
+
alpha, // Alpha: alpha
arm, // ARM; arm, armv.*, xscale
bfin, // Blackfin: bfin
@@ -72,7 +72,7 @@
enum VendorType {
UnknownVendor,
- Apple,
+ Apple,
PC
};
enum OSType {
@@ -98,7 +98,7 @@
enum EnvironmentType {
UnknownEnvironment
};
-
+
private:
std::string Data;
@@ -124,7 +124,7 @@
public:
/// @name Constructors
/// @{
-
+
Triple() : Data(), Arch(InvalidArch) {}
explicit Triple(StringRef Str) : Data(Str), Arch(InvalidArch) {}
explicit Triple(StringRef ArchStr, StringRef VendorStr, StringRef OSStr)
@@ -159,22 +159,22 @@
/// @}
/// @name Typed Component Access
/// @{
-
+
/// getArch - Get the parsed architecture type of this triple.
- ArchType getArch() const {
- if (!isInitialized()) Parse();
+ ArchType getArch() const {
+ if (!isInitialized()) Parse();
return Arch;
}
-
+
/// getVendor - Get the parsed vendor type of this triple.
- VendorType getVendor() const {
- if (!isInitialized()) Parse();
+ VendorType getVendor() const {
+ if (!isInitialized()) Parse();
return Vendor;
}
-
+
/// getOS - Get the parsed operating system type of this triple.
- OSType getOS() const {
- if (!isInitialized()) Parse();
+ OSType getOS() const {
+ if (!isInitialized()) Parse();
return OS;
}
@@ -185,8 +185,8 @@
}
/// getEnvironment - Get the parsed environment type of this triple.
- EnvironmentType getEnvironment() const {
- if (!isInitialized()) Parse();
+ EnvironmentType getEnvironment() const {
+ if (!isInitialized()) Parse();
return Environment;
}
@@ -218,13 +218,13 @@
/// if the environment component is present).
StringRef getOSAndEnvironmentName() const;
-
+
/// getDarwinNumber - Parse the 'darwin number' out of the specific target
/// triple. For example, if we have darwin8.5 return 8,5,0. If any entry is
/// not defined, return 0's. This requires that the triple have an OSType of
/// darwin before it is called.
void getDarwinNumber(unsigned &Maj, unsigned &Min, unsigned &Revision) const;
-
+
/// getDarwinMajorNumber - Return just the major version number, this is
/// specialized because it is a common query.
unsigned getDarwinMajorNumber() const {
@@ -232,7 +232,7 @@
getDarwinNumber(Maj, Min, Rev);
return Maj;
}
-
+
/// @}
/// @name Mutators
/// @{
More information about the llvm-commits
mailing list