I have a project which contains both Objective-C and Swift. I want to get the LLVM IR by using Xcode, is there anyway to do that?
I try to put -emit-ir into "Other Swift flag", but it doesn't work.
I have a project which contains both Objective-C and Swift. I want to get the LLVM IR by using Xcode, is there anyway to do that?
I try to put -emit-ir into "Other Swift flag", but it doesn't work.
I found the solution.
You need to put -Xfrontend -emit-ir into Other Swift Flags, and the LLVM IR is in the .o file!