[LLVMdev] Using "-mllvm -debug" with "-flto" during link-time code generation

Zinovy Nis zinovy.nis at gmail.com
Wed Dec 17 02:35:05 PST 2014


Look here for details:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20130722/181957.html

Tu put it short: "-Wl,-plugin-opt=-print-after-all -Wl,-plugin-opt=-debug"

2014-12-14 0:54 GMT+03:00 Steven Noonan <steven at uplinklabs.net>:
> I've got an --enable-debug-runtime build of LLVM (current trunk).
> Using "-mllvm -debug" works fine for compile invocations of clang. But
> I can't get debug output from LLVM when doing a link with "-flto
> -fuse-ld=gold", all I get are a series of "argument unused during
> compilation" warnings.
>
> What's the prescribed set of arguments to enable debug output for the
> -flto codegen/link stage?
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list