美文网首页
[DEBUG]OptCommandLineRegisteredI

[DEBUG]OptCommandLineRegisteredI

作者: HAPPYers | 来源:发表于2019-10-05 22:22 被阅读0次

写完pass以后,运行opt报错

λ opt -help
: CommandLine Error: Option 'mypass' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

排查了很多地方都没有找到解决的方法
突发奇想,于是干脆在注册的时候改变一下名称

INITIALIZE_PASS ( MyPass, "mypass0", "Print all function names.", false, false )

也就是把第二个参数从"mypass"改成"mypass0",这样就能跑起来了.

相关文章

网友评论

      本文标题:[DEBUG]OptCommandLineRegisteredI

      本文链接:https://www.haomeiwen.com/subject/hevypctx.html