[patch] Avoid a Symbol -> Name -> Symbol conversion

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Jun 21 20:47:03 PDT 2015


Currently some code produces an TargetExternalSymbol from a MCSymbol.
That means extracting the symbol name and fetching the symbol again
down the pipeline.

The attached patch adds a DAG.getMCSymbol that lets the MCSymbol pass
unchanged on the DAG.

Doing so removes the need for MO_NOPREFIX and fixes the root cause of
pr23900, allowing r240130 to be committed again.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 22983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150621/b3633087/attachment.bin>


More information about the llvm-commits mailing list