================
@@ -593,6 +594,8 @@ static bool ExecuteAssemblerImpl(AssemblerInvocation &Opts,
     Triple T(Opts.Triple);
     Str.reset(TheTarget->createMCObjectStreamer(
         T, Ctx, std::move(MAB), std::move(OW), std::move(CE), *STI));
+    if (T.isLFI())
+      initializeLFIMCStreamer(*Str.get(), Ctx, T);
----------------
zyedidia wrote:

Performing rewriting in the AsmStreamer does cause this issue, but it is very 
convenient for testing. To avoid double rewriting, one of the invocations needs 
to target `X_lfi` and the other one `X`. For example: `llvm-mc -filetype=asm 
-triple aarch64_lfi | llvm-mc -filetype=obj -triple aarch64` or `llvm-mc 
-filetype=asm -triple aarch64 | llvm-mc -filetype=obj -triple aarch64_lfi` both 
work.

https://github.com/llvm/llvm-project/pull/172906
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to