forked from OSchip/llvm-project
streamerize printing of dbg_value, the x86 backend is now fully
streamerized for everything. llvm-svn: 100316
This commit is contained in:
parent
bf43d4b6e9
commit
d479317d65
|
@ -381,7 +381,6 @@ void X86AsmPrinter::PrintDebugValueComment(const MachineInstr *MI,
|
|||
}
|
||||
O << "+";
|
||||
printOperand(MI, NOps-2, O);
|
||||
OutStreamer.AddBlankLine();
|
||||
}
|
||||
|
||||
|
||||
|
@ -389,8 +388,12 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) {
|
|||
X86MCInstLower MCInstLowering(OutContext, Mang, *this);
|
||||
switch (MI->getOpcode()) {
|
||||
case TargetOpcode::DBG_VALUE:
|
||||
if (VerboseAsm)
|
||||
PrintDebugValueComment(MI, O);
|
||||
if (VerboseAsm && OutStreamer.hasRawTextSupport()) {
|
||||
std::string TmpStr;
|
||||
raw_string_ostream OS(TmpStr);
|
||||
PrintDebugValueComment(MI, OS);
|
||||
OutStreamer.EmitRawText(StringRef(OS.str()));
|
||||
}
|
||||
return;
|
||||
|
||||
case X86::MOVPC32r: {
|
||||
|
|
Loading…
Reference in New Issue