aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2008-06-28 11:07:35 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2008-06-28 11:07:35 +0000
commit271329af247418dba2ee91d519b782d0b07f54ef (patch)
treea684102637b36510f51f82bbc11b85a0804cedda
parentb131b444431f58064e4586a774a7703e8509d2c1 (diff)
Cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52857 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86IntelAsmPrinter.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/Target/X86/X86IntelAsmPrinter.cpp b/lib/Target/X86/X86IntelAsmPrinter.cpp
index 99e004685c..aa64668d97 100644
--- a/lib/Target/X86/X86IntelAsmPrinter.cpp
+++ b/lib/Target/X86/X86IntelAsmPrinter.cpp
@@ -318,7 +318,7 @@ void X86IntelAsmPrinter::printMachineInstruction(const MachineInstr *MI) {
}
bool X86IntelAsmPrinter::doInitialization(Module &M) {
- bool Result = X86SharedAsmPrinter::doInitialization(M);
+ bool Result = AsmPrinter::doInitialization(M);
Mang->markCharUnacceptable('.');
@@ -415,8 +415,7 @@ bool X86IntelAsmPrinter::doFinalization(Module &M) {
}
// Output linker support code for dllexported globals
- if (!DLLExportedGVs.empty() ||
- !DLLExportedFns.empty()) {
+ if (!DLLExportedGVs.empty() || !DLLExportedFns.empty()) {
SwitchToDataSection("");
O << "; WARNING: The following code is valid only with MASM v8.x and (possible) higher\n"
<< "; This version of MASM is usually shipped with Microsoft Visual Studio 2005\n"
@@ -427,20 +426,16 @@ bool X86IntelAsmPrinter::doFinalization(Module &M) {
for (StringSet<>::iterator i = DLLExportedGVs.begin(),
e = DLLExportedGVs.end();
- i != e; ++i) {
+ i != e; ++i)
O << "\t db ' /EXPORT:" << i->getKeyData() << ",data'\n";
- }
for (StringSet<>::iterator i = DLLExportedFns.begin(),
e = DLLExportedFns.end();
- i != e; ++i) {
+ i != e; ++i)
O << "\t db ' /EXPORT:" << i->getKeyData() << "'\n";
- }
- if (!DLLExportedGVs.empty() ||
- !DLLExportedFns.empty()) {
+ if (!DLLExportedGVs.empty() || !DLLExportedFns.empty())
O << "_drectve\t ends\n";
- }
// Bypass X86SharedAsmPrinter::doFinalization().
bool Result = AsmPrinter::doFinalization(M);