[llvm-commits] [llvm] r151200 - in /llvm/trunk: include/llvm/CodeGen/AsmPrinter.h lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/PowerPC/PPCAsmPrinter.cpp test/CodeGen/PowerPC/ppc64-linux-func-size.ll
Roman Divacky
rdivacky at freebsd.org
Wed Feb 22 13:49:59 PST 2012
> Modified: llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp?rev=151200&r1=151199&r2=151200&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp (original)
> +++ llvm/trunk/lib/Target/PowerPC/PPCAsmPrinter.cpp Wed Feb 22 15:11:47 2012
> @@ -398,7 +398,11 @@
> OutStreamer.EmitRawText("\t.quad .L." + Twine(CurrentFnSym->getName()) +
> ",.TOC. at tocbase");
> OutStreamer.EmitRawText(StringRef("\t.previous"));
> - OutStreamer.EmitRawText(".L." + Twine(CurrentFnSym->getName()) + ":");
> +
> + MCSymbol *RealFnSym = OutContext.GetOrCreateSymbol(
> + ".L." + Twine(CurrentFnSym->getName()));
> + OutStreamer.EmitLabel(RealFnSym);
> + CurrentFnSymForSize = RealFnSym;
> }
The EmitRawText here must vanish. Are you ok with the attached patch? It
properly MCizes this. If you dont object I'd like to (finaly) commit that.
roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: powerpc.mc.patch
Type: text/x-diff
Size: 2564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120222/0cdca0e6/attachment.patch>
More information about the llvm-commits
mailing list