[lld] [lld][COFF][LTO] Implement /lldemit:asm option (PR #67079)

Alexandre Ganea via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 05:47:14 PDT 2023


================
@@ -87,13 +87,21 @@ lto::Config BitcodeCompiler::createConfig() {
   c.RunCSIRInstr = ctx.config.ltoCSProfileGenerate;
   c.PGOWarnMismatch = ctx.config.ltoPGOWarnMismatch;
 
-  if (ctx.config.emit == EmitKind::LLVM) {
+  switch (ctx.config.emit) {
+  case EmitKind::Obj:
----------------
aganea wrote:

I don't think we need to cover the `EmitKind::Obj` case here. Maybe add `default: LLVM_UNREACHABLE(...);` instead?

https://github.com/llvm/llvm-project/pull/67079


More information about the llvm-commits mailing list