PR 9810
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130518
91177308-0d34-0410-b5e6-
96231b3b80d8
if (isVerbose()) EmitKill(II, *this);
break;
default:
if (isVerbose()) EmitKill(II, *this);
break;
default:
+ if (!TM.hasMCUseLoc())
+ MCLineEntry::Make(&OutStreamer, getCurrentSection());
+
EmitInstruction(II);
break;
}
EmitInstruction(II);
break;
}
void MCAsmStreamer::EmitInstruction(const MCInst &Inst) {
assert(getCurrentSection() && "Cannot emit contents before setting section!");
void MCAsmStreamer::EmitInstruction(const MCInst &Inst) {
assert(getCurrentSection() && "Cannot emit contents before setting section!");
- if (!UseLoc)
- MCLineEntry::Make(this, getCurrentSection());
-
// Show the encoding in a comment if we have a code emitter.
if (Emitter)
AddEncodingComment(Inst);
// Show the encoding in a comment if we have a code emitter.
if (Emitter)
AddEncodingComment(Inst);