[llvm-commits] [llvm] r52857 - /llvm/trunk/lib/Target/X86/X86IntelAsmPrinter.cpp
Anton Korobeynikov
asl at math.spbu.ru
Sat Jun 28 04:07:35 PDT 2008
Author: asl
Date: Sat Jun 28 06:07:35 2008
New Revision: 52857
URL: http://llvm.org/viewvc/llvm-project?rev=52857&view=rev
Log:
Cleanup
Modified:
llvm/trunk/lib/Target/X86/X86IntelAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/X86/X86IntelAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86IntelAsmPrinter.cpp?rev=52857&r1=52856&r2=52857&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86IntelAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86IntelAsmPrinter.cpp Sat Jun 28 06:07:35 2008
@@ -318,7 +318,7 @@
}
bool X86IntelAsmPrinter::doInitialization(Module &M) {
- bool Result = X86SharedAsmPrinter::doInitialization(M);
+ bool Result = AsmPrinter::doInitialization(M);
Mang->markCharUnacceptable('.');
@@ -415,8 +415,7 @@
}
// 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 @@
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);
More information about the llvm-commits
mailing list