[llvm-commits] CVS: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
Jeff Cohen
jeffc at jolt-lang.org
Thu May 4 09:20:35 PDT 2006
Changes in directory llvm/lib/Target/X86:
X86IntelAsmPrinter.cpp updated: 1.38 -> 1.39
---
Log message:
Make external globals public; other minor cleanup.
---
Diffs of the changes: (+17 -15)
X86IntelAsmPrinter.cpp | 32 +++++++++++++++++---------------
1 files changed, 17 insertions(+), 15 deletions(-)
Index: llvm/lib/Target/X86/X86IntelAsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.38 llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.39
--- llvm/lib/Target/X86/X86IntelAsmPrinter.cpp:1.38 Wed May 3 20:15:02 2006
+++ llvm/lib/Target/X86/X86IntelAsmPrinter.cpp Thu May 4 11:20:22 2006
@@ -24,20 +24,6 @@
X86IntelAsmPrinter::X86IntelAsmPrinter(std::ostream &O, X86TargetMachine &TM)
: X86SharedAsmPrinter(O, TM) {
- CommentString = ";";
- GlobalPrefix = "_";
- PrivateGlobalPrefix = "$";
- AlignDirective = "\talign\t";
- MLSections = true;
- ZeroDirective = "\tdb\t";
- ZeroDirectiveSuffix = " dup(0)";
- AsciiDirective = "\tdb\t";
- AscizDirective = 0;
- Data8bitsDirective = "\t.db\t";
- Data16bitsDirective = "\t.dw\t";
- Data32bitsDirective = "\t.dd\t";
- Data64bitsDirective = "\t.dq\t";
- HasDotTypeDotSizeDirective = false;
}
/// runOnMachineFunction - This uses the printMachineInstruction()
@@ -413,8 +399,22 @@
bool X86IntelAsmPrinter::doInitialization(Module &M) {
X86SharedAsmPrinter::doInitialization(M);
+ CommentString = ";";
+ GlobalPrefix = "_";
+ PrivateGlobalPrefix = "$";
+ AlignDirective = "\talign\t";
+ MLSections = true;
+ ZeroDirective = "\tdb\t";
+ ZeroDirectiveSuffix = " dup(0)";
+ AsciiDirective = "\tdb\t";
+ AscizDirective = 0;
+ Data8bitsDirective = "\t.db\t";
+ Data16bitsDirective = "\t.dw\t";
+ Data32bitsDirective = "\t.dd\t";
+ Data64bitsDirective = "\t.dq\t";
+ HasDotTypeDotSizeDirective = false;
Mang->markCharUnacceptable('.');
- PrivateGlobalPrefix = "$"; // need this here too :(
+
O << "\t.686\n\t.model flat\n\n";
// Emit declarations for external functions.
@@ -427,6 +427,8 @@
I != E; ++I) {
if (I->isExternal())
O << "\textern " << Mang->getValueName(I) << ":byte\n";
+ else if (I->getLinkage() == GlobalValue::ExternalLinkage)
+ O << "\tpublic " << Mang->getValueName(I) << "\n";
}
return false;
More information about the llvm-commits
mailing list