mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
code cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78432 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fadf13128f
commit
5f51cd0579
@ -1687,27 +1687,25 @@ GCMetadataPrinter *AsmPrinter::GetOrCreateGCPrinter(GCStrategy *S) {
|
||||
}
|
||||
|
||||
/// EmitComments - Pretty-print comments for instructions
|
||||
void AsmPrinter::EmitComments(const MachineInstr &MI) const
|
||||
{
|
||||
if (VerboseAsm) {
|
||||
if (!MI.getDebugLoc().isUnknown()) {
|
||||
DebugLocTuple DLT = MF->getDebugLocTuple(MI.getDebugLoc());
|
||||
void AsmPrinter::EmitComments(const MachineInstr &MI) const {
|
||||
if (!VerboseAsm ||
|
||||
MI.getDebugLoc().isUnknown())
|
||||
return;
|
||||
|
||||
DebugLocTuple DLT = MF->getDebugLocTuple(MI.getDebugLoc());
|
||||
|
||||
// Print source line info
|
||||
O.PadToColumn(TAI->getCommentColumn(), 1);
|
||||
O << TAI->getCommentString() << " SrcLine ";
|
||||
if (DLT.CompileUnit->hasInitializer()) {
|
||||
Constant *Name = DLT.CompileUnit->getInitializer();
|
||||
if (ConstantArray *NameString = dyn_cast<ConstantArray>(Name))
|
||||
if (NameString->isString()) {
|
||||
O << NameString->getAsString() << " ";
|
||||
}
|
||||
}
|
||||
O << DLT.Line;
|
||||
if (DLT.Col != 0)
|
||||
O << ":" << DLT.Col;
|
||||
}
|
||||
// Print source line info
|
||||
O.PadToColumn(TAI->getCommentColumn(), 1);
|
||||
O << TAI->getCommentString() << " SrcLine ";
|
||||
if (DLT.CompileUnit->hasInitializer()) {
|
||||
Constant *Name = DLT.CompileUnit->getInitializer();
|
||||
if (ConstantArray *NameString = dyn_cast<ConstantArray>(Name))
|
||||
if (NameString->isString())
|
||||
O << NameString->getAsString() << " ";
|
||||
}
|
||||
O << DLT.Line;
|
||||
if (DLT.Col != 0)
|
||||
O << ":" << DLT.Col;
|
||||
}
|
||||
|
||||
/// EmitComments - Pretty-print comments for instructions
|
||||
|
Loading…
x
Reference in New Issue
Block a user