streamerize printing of dbg_value, the x86 backend is now fully

streamerized for everything.

llvm-svn: 100316
This commit is contained in:
Chris Lattner 2010-04-04 05:40:34 +00:00
parent bf43d4b6e9
commit d479317d65
1 changed files with 6 additions and 3 deletions

View File

@ -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: {