[llvm] r200170 - Use emitRawComment instead of EmitRawText.
Rafael Espindola
rafael.espindola at gmail.com
Sun Jan 26 16:16:00 PST 2014
Author: rafael
Date: Sun Jan 26 18:16:00 2014
New Revision: 200170
URL: http://llvm.org/viewvc/llvm-project?rev=200170&view=rev
Log:
Use emitRawComment instead of EmitRawText.
Modified:
llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp?rev=200170&r1=200169&r2=200170&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp Sun Jan 26 18:16:00 2014
@@ -90,10 +90,11 @@ bool AMDGPUAsmPrinter::runOnMachineFunct
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(
More information about the llvm-commits
mailing list