[llvm] r200582 - Replace another use with hasRawTextSupport+EmitRawText with emitRawComment.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jan 31 14:08:19 PST 2014
Author: rafael
Date: Fri Jan 31 16:08:19 2014
New Revision: 200582
URL: http://llvm.org/viewvc/llvm-project?rev=200582&view=rev
Log:
Replace another use with hasRawTextSupport+EmitRawText with emitRawComment.
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=200582&r1=200581&r2=200582&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUAsmPrinter.cpp Fri Jan 31 16:08:19 2014
@@ -80,7 +80,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunct
OutStreamer.SwitchSection(getObjFileLowering().getTextSection());
EmitFunctionBody();
- if (isVerbose() && OutStreamer.hasRawTextSupport()) {
+ if (isVerbose()) {
const MCSectionELF *CommentSection
= Context.getELFSection(".AMDGPU.csdata",
ELF::SHT_PROGBITS, 0,
@@ -95,7 +95,7 @@ bool AMDGPUAsmPrinter::runOnMachineFunct
false);
} else {
R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>();
- OutStreamer.EmitRawText(
+ OutStreamer.emitRawComment(
Twine("SQ_PGM_RESOURCES:STACK_SIZE = " + Twine(MFI->StackSize)));
}
}
More information about the llvm-commits
mailing list