aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-07-12 02:36:10 +0000
committerChris Lattner <sabre@nondot.org>2005-07-12 02:36:10 +0000
commitb151acadc85011961e24d98fa6ce626ea45cd074 (patch)
tree57bf1be82e90d872c24e3983e14fe5cc984aefc9 /lib/Target/X86/X86Subtarget.cpp
parent3249bfc82887d820db46c138972548740e7bd925 (diff)
downloadexternal_llvm-b151acadc85011961e24d98fa6ce626ea45cd074.zip
external_llvm-b151acadc85011961e24d98fa6ce626ea45cd074.tar.gz
external_llvm-b151acadc85011961e24d98fa6ce626ea45cd074.tar.bz2
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
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp10
1 files changed, 4 insertions, 6 deletions
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 @@ X86Subtarget::X86Subtarget(const Module &M)
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 @@ X86Subtarget::X86Subtarget(const Module &M)
#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) {
}
}