aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86IntelAsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-05-09 05:33:48 +0000
committerChris Lattner <sabre@nondot.org>2006-05-09 05:33:48 +0000
commit7faec9b93ad8c1f40ec2dd415c7f2ccbe48cfe30 (patch)
treea0cea6523715732b1455e23833ffcb55a8c3d7f5 /lib/Target/X86/X86IntelAsmPrinter.cpp
parentb6c76ec46ef022717cf3c4f273edc2abfad1662b (diff)
downloadexternal_llvm-7faec9b93ad8c1f40ec2dd415c7f2ccbe48cfe30.zip
external_llvm-7faec9b93ad8c1f40ec2dd415c7f2ccbe48cfe30.tar.gz
external_llvm-7faec9b93ad8c1f40ec2dd415c7f2ccbe48cfe30.tar.bz2
Implement MASM sections correctly, without a "has masm sections flag" and a bunch of special case code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28194 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86IntelAsmPrinter.cpp')
-rwxr-xr-xlib/Target/X86/X86IntelAsmPrinter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Target/X86/X86IntelAsmPrinter.cpp b/lib/Target/X86/X86IntelAsmPrinter.cpp
index 74643c2..1573c64 100755
--- a/lib/Target/X86/X86IntelAsmPrinter.cpp
+++ b/lib/Target/X86/X86IntelAsmPrinter.cpp
@@ -284,7 +284,6 @@ void X86IntelAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
}
bool X86IntelAsmPrinter::doInitialization(Module &M) {
- MLSections = true;
GlobalPrefix = "_";
CommentString = ";";
@@ -306,6 +305,9 @@ bool X86IntelAsmPrinter::doInitialization(Module &M) {
DefaultTextSection = "_text";
DefaultDataSection = "_data";
SwitchToSectionDirective = "";
+ TextSectionStartSuffix = "\tsegment 'CODE'";
+ DataSectionStartSuffix = "\tsegment 'DATA'";
+ SectionEndDirectiveSuffix = "\tends\n";
O << "\t.686\n\t.model flat\n\n";