]> git.lizzy.rs Git - rust.git/commit
RustWrapper: work around unification of diagnostic handlers
authorAugie Fackler <augie@google.com>
Tue, 23 Mar 2021 22:23:28 +0000 (18:23 -0400)
committerAugie Fackler <augie@google.com>
Thu, 22 Apr 2021 19:46:47 +0000 (15:46 -0400)
commitfc2a74c64081dfc19a50c34e1b014b6d631fb6f7
treec37bfe3135e1df25a174f15c54f52518283ff39f
parentccf171242bb00dd17ac4b844e6afe77fabd04b78
RustWrapper: work around unification of diagnostic handlers

This lets me build against llvm/main as of March 23rd, 2021. I'm not
entirely sure this is _correct_, but it appears to be functionally
identical to what was done in LLVM: existing callsites of
setInlineAsmDiagnosticHandler were moved to SetDiagnosticHandler() on
the context object, which we already set up in both places that we
called setInlineAsmDiagnosticHandler().
compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp