Minor changes to improve comments and fix the build on _WIN32 systems.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22391 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index e50d2d6..1c16156 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -21,7 +21,7 @@
asmLeadingUnderscore(false), asmAlignmentIsInBytes(false),
asmPrintDotLocalConstants(false), asmPrintDotLCommConstants(false),
asmPrintConstantAlignment(false) {
- // Declare a boolean for each platform
+ // Declare a boolean for each major platform.
bool forCygwin = false;
bool forDarwin = false;
bool forWindows = false;
@@ -40,20 +40,18 @@
#elif defined(__APPLE__)
forDarwin = true;
#elif defined(_WIN32)
- forWindws = true;
+ forWindows = true;
#endif
}
if (forCygwin) {
asmLeadingUnderscore = true;
- }
- if (forDarwin) {
+ } else if (forDarwin) {
stackAlignment = 16;
indirectExternAndWeakGlobals = true;
asmDarwinLinkerStubs = true;
asmLeadingUnderscore = true;
asmPrintDotLCommConstants = true;
- }
- if (forWindows) {
+ } else if (forWindows) {
}
}