[llvm-commits] CVS: llvm/lib/Target/X86/X86Subtarget.cpp X86Subtarget.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 21 14:44:10 PST 2005
Changes in directory llvm/lib/Target/X86:
X86Subtarget.cpp updated: 1.7 -> 1.8
X86Subtarget.h updated: 1.6 -> 1.7
---
Log message:
Simplify the subtarget info, allow the asmwriter to do some target sensing
based on TargetType.
---
Diffs of the changes: (+2 -22)
X86Subtarget.cpp | 17 ++---------------
X86Subtarget.h | 7 -------
2 files changed, 2 insertions(+), 22 deletions(-)
Index: llvm/lib/Target/X86/X86Subtarget.cpp
diff -u llvm/lib/Target/X86/X86Subtarget.cpp:1.7 llvm/lib/Target/X86/X86Subtarget.cpp:1.8
--- llvm/lib/Target/X86/X86Subtarget.cpp:1.7 Mon Nov 21 16:31:58 2005
+++ llvm/lib/Target/X86/X86Subtarget.cpp Mon Nov 21 16:43:58 2005
@@ -16,11 +16,7 @@
using namespace llvm;
X86Subtarget::X86Subtarget(const Module &M, const std::string &FS)
- : TargetSubtarget(), stackAlignment(8),
- indirectExternAndWeakGlobals(false), asmDarwinLinkerStubs(false),
- asmLeadingUnderscore(false), asmAlignmentIsInBytes(false),
- asmPrintDotLocalConstants(false), asmPrintDotLCommConstants(false),
- asmPrintConstantAlignment(false) {
+ : stackAlignment(8), indirectExternAndWeakGlobals(false) {
// Default to ELF unless otherwise specified.
TargetType = isELF;
@@ -46,17 +42,8 @@
#endif
}
- switch (TargetType) {
- case isCygwin:
- asmLeadingUnderscore = true;
- break;
- case isDarwin:
+ if (TargetType == isDarwin) {
stackAlignment = 16;
indirectExternAndWeakGlobals = true;
- asmDarwinLinkerStubs = true;
- asmLeadingUnderscore = true;
- asmPrintDotLCommConstants = true;
- break;
- default: break;
}
}
Index: llvm/lib/Target/X86/X86Subtarget.h
diff -u llvm/lib/Target/X86/X86Subtarget.h:1.6 llvm/lib/Target/X86/X86Subtarget.h:1.7
--- llvm/lib/Target/X86/X86Subtarget.h:1.6 Mon Nov 21 16:31:58 2005
+++ llvm/lib/Target/X86/X86Subtarget.h Mon Nov 21 16:43:58 2005
@@ -30,13 +30,6 @@
/// Used by instruction selector
bool indirectExternAndWeakGlobals;
- /// Used by the asm printer
- bool asmDarwinLinkerStubs;
- bool asmLeadingUnderscore;
- bool asmAlignmentIsInBytes;
- bool asmPrintDotLocalConstants;
- bool asmPrintDotLCommConstants;
- bool asmPrintConstantAlignment;
public:
enum {
isELF, isCygwin, isDarwin, isWindows
More information about the llvm-commits
mailing list