llvm-svn: 54454
This commit is contained in:
Anton Korobeynikov 2008-08-07 09:52:54 +00:00
parent 456e940844
commit 0e32dffacc
1 changed files with 9 additions and 9 deletions

View File

@ -141,7 +141,7 @@ bool IA64AsmPrinter::runOnMachineFunction(MachineFunction &MF) {
// Print out labels for the function. // Print out labels for the function.
EmitAlignment(5); EmitAlignment(5);
O << "\t.global\t" << CurrentFnName << "\n"; O << "\t.global\t" << CurrentFnName << '\n';
O << "\t.type\t" << CurrentFnName << ", @function\n"; O << "\t.type\t" << CurrentFnName << ", @function\n";
O << CurrentFnName << ":\n"; O << CurrentFnName << ":\n";
@ -285,12 +285,12 @@ void IA64AsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
if (GVar->hasInternalLinkage()) { if (GVar->hasInternalLinkage()) {
O << "\t.lcomm " << name << "#," << Size O << "\t.lcomm " << name << "#," << Size
<< "," << (1 << Align); << ',' << (1 << Align);
O << "\n"; O << '\n';
} else { } else {
O << "\t.common " << name << "#," << Size O << "\t.common " << name << "#," << Size
<< "," << (1 << Align); << ',' << (1 << Align);
O << "\n"; O << '\n';
} }
return; return;
@ -302,14 +302,14 @@ void IA64AsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
case GlobalValue::CommonLinkage: case GlobalValue::CommonLinkage:
case GlobalValue::WeakLinkage: case GlobalValue::WeakLinkage:
// Nonnull linkonce -> weak // Nonnull linkonce -> weak
O << "\t.weak " << name << "\n"; O << "\t.weak " << name << '\n';
break; break;
case GlobalValue::AppendingLinkage: case GlobalValue::AppendingLinkage:
// FIXME: appending linkage variables should go into a section of // FIXME: appending linkage variables should go into a section of
// their name or something. For now, just emit them as external. // their name or something. For now, just emit them as external.
case GlobalValue::ExternalLinkage: case GlobalValue::ExternalLinkage:
// If external or appending, declare as a global symbol // If external or appending, declare as a global symbol
O << TAI->getGlobalDirective() << name << "\n"; O << TAI->getGlobalDirective() << name << '\n';
// FALL THROUGH // FALL THROUGH
case GlobalValue::InternalLinkage: case GlobalValue::InternalLinkage:
break; break;
@ -330,10 +330,10 @@ void IA64AsmPrinter::printModuleLevelGV(const GlobalVariable* GVar) {
if (TAI->hasDotTypeDotSizeDirective()) { if (TAI->hasDotTypeDotSizeDirective()) {
O << "\t.type " << name << ",@object\n"; O << "\t.type " << name << ",@object\n";
O << "\t.size " << name << "," << Size << "\n"; O << "\t.size " << name << ',' << Size << '\n';
} }
O << name << ":\t\t\t\t// " << *C << "\n"; O << name << ":\t\t\t\t// " << *C << '\n';
EmitGlobalConstant(C); EmitGlobalConstant(C);
} }