Steven Noonan
2014-Dec-13 21:54 UTC
[LLVMdev] Using "-mllvm -debug" with "-flto" during link-time code generation
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?
Zinovy Nis
2014-Dec-17 10:35 UTC
[LLVMdev] Using "-mllvm -debug" with "-flto" during link-time code generation
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