Use emitRawComment instead of EmitRawText.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200170 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2014-01-27 00:16:00 +00:00
parent 47030457a5
commit e881f38db6

View File

@ -90,10 +90,11 @@ bool AMDGPUAsmPrinter::runOnMachineFunction(MachineFunction &MF) {
OutStreamer.SwitchSection(CommentSection);
if (STM.getGeneration() > AMDGPUSubtarget::NORTHERN_ISLANDS) {
OutStreamer.EmitRawText(
Twine("; Kernel info:\n") +
"; NumSgprs: " + Twine(KernelInfo.NumSGPR) + "\n" +
"; NumVgprs: " + Twine(KernelInfo.NumVGPR) + "\n");
OutStreamer.emitRawComment("Kernel info:", false);
OutStreamer.emitRawComment("NumSgprs: " + Twine(KernelInfo.NumSGPR),
false);
OutStreamer.emitRawComment("NumVgprs: " + Twine(KernelInfo.NumVGPR),
false);
} else {
R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>();
OutStreamer.EmitRawText(