Skip to content

Commit ae0ca8b

Browse files
author
Brian Gaeke
committed
Use ! for comment char; it works in both Solaris as and GAS.
llvm-svn: 12451
1 parent 67fcefb commit ae0ca8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Target/SparcV8/SparcV8AsmPrinter.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ void V8Printer::emitGlobalConstant(const Constant *CV) {
256256
unsigned UVal;
257257
} U;
258258
U.FVal = Val;
259-
O << ".long\t" << U.UVal << "\t# float " << Val << "\n";
259+
O << ".long\t" << U.UVal << "\t! float " << Val << "\n";
260260
return;
261261
}
262262
case Type::DoubleTyID: {
@@ -265,7 +265,7 @@ void V8Printer::emitGlobalConstant(const Constant *CV) {
265265
uint64_t UVal;
266266
} U;
267267
U.FVal = Val;
268-
O << ".quad\t" << U.UVal << "\t# double " << Val << "\n";
268+
O << ".quad\t" << U.UVal << "\t! double " << Val << "\n";
269269
return;
270270
}
271271
}
@@ -312,7 +312,7 @@ void V8Printer::printConstantPool(MachineConstantPool *MCP) {
312312
O << "\t.section .rodata\n";
313313
O << "\t.align " << (unsigned)TD.getTypeAlignment(CP[i]->getType())
314314
<< "\n";
315-
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t#"
315+
O << ".CPI" << CurrentFnName << "_" << i << ":\t\t\t\t\t!"
316316
<< *CP[i] << "\n";
317317
emitGlobalConstant(CP[i]);
318318
}
@@ -352,7 +352,7 @@ bool V8Printer::runOnMachineFunction(MachineFunction &MF) {
352352
for (MachineFunction::const_iterator I = MF.begin(), E = MF.end();
353353
I != E; ++I) {
354354
// Print a label for the basic block.
355-
O << ".LBB" << NumberForBB[I->getBasicBlock()] << ":\t# "
355+
O << ".LBB" << NumberForBB[I->getBasicBlock()] << ":\t! "
356356
<< I->getBasicBlock()->getName() << "\n";
357357
for (MachineBasicBlock::const_iterator II = I->begin(), E = I->end();
358358
II != E; ++II) {
@@ -399,7 +399,7 @@ void V8Printer::printOperand(const MachineOperand &MO) {
399399
ValueMapTy::const_iterator i = NumberForBB.find(MO.getVRegValue());
400400
assert (i != NumberForBB.end()
401401
&& "Could not find a BB in the NumberForBB map!");
402-
O << ".LBB" << i->second << " # PC rel: " << MO.getVRegValue()->getName();
402+
O << ".LBB" << i->second << " ! PC rel: " << MO.getVRegValue()->getName();
403403
return;
404404
}
405405
case MachineOperand::MO_GlobalAddress:
@@ -484,7 +484,7 @@ bool V8Printer::doFinalization(Module &M) {
484484

485485
O << "\t.comm " << name << "," << TD.getTypeSize(C->getType())
486486
<< "," << (unsigned)TD.getTypeAlignment(C->getType());
487-
O << "\t\t# ";
487+
O << "\t\t! ";
488488
WriteAsOperand(O, I, true, true, &M);
489489
O << "\n";
490490
} else {
@@ -515,7 +515,7 @@ bool V8Printer::doFinalization(Module &M) {
515515
O << "\t.align " << Align << "\n";
516516
O << "\t.type " << name << ",@object\n";
517517
O << "\t.size " << name << "," << Size << "\n";
518-
O << name << ":\t\t\t\t# ";
518+
O << name << ":\t\t\t\t! ";
519519
WriteAsOperand(O, I, true, true, &M);
520520
O << " = ";
521521
WriteAsOperand(O, C, false, false, &M);

0 commit comments

Comments
 (0)