[cfe-commits] [PATCH] Fix non-function CodeGen passes

Mike Gist Mike.Gist at imgtec.com
Mon Sep 13 03:09:03 PDT 2010


Hi,

 

CodeGen passes added by 'addPassesToEmitFile' can no longer be
CallGraphSCC or Module passes.

I'm attaching a patch which fixes this issue (using a PassManager for
CodeGen passes instead of a FunctionPassManager, which is consistent
with llc's behaviour).

This appears to be a regression from 2.7 so I'd be grateful if this fix
was merged into the 2.8 branch as well.

 

Thanks,

 

Mike

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100913/c4a3d1ed/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BackendUtil.patch
Type: application/octet-stream
Size: 1436 bytes
Desc: BackendUtil.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100913/c4a3d1ed/attachment.obj>


More information about the cfe-commits mailing list