Translate inline assembly errors back to source locations
Fixes #17552.
This commit is contained in:
parent
34dfa45718
commit
9d60de93e2
12 changed files with 133 additions and 12 deletions
|
@ -871,3 +871,18 @@ extern "C" void LLVMWriteDebugLocToString(
|
|||
raw_rust_string_ostream os(str);
|
||||
unwrap(dl)->print(*unwrap(C), os);
|
||||
}
|
||||
|
||||
DEFINE_SIMPLE_CONVERSION_FUNCTIONS(SMDiagnostic, LLVMSMDiagnosticRef)
|
||||
|
||||
extern "C" void LLVMSetInlineAsmDiagnosticHandler(
|
||||
LLVMContextRef C,
|
||||
LLVMContext::InlineAsmDiagHandlerTy H,
|
||||
void *CX)
|
||||
{
|
||||
unwrap(C)->setInlineAsmDiagnosticHandler(H, CX);
|
||||
}
|
||||
|
||||
extern "C" void LLVMWriteSMDiagnosticToString(LLVMSMDiagnosticRef d, RustStringRef str) {
|
||||
raw_rust_string_ostream os(str);
|
||||
unwrap(d)->print("", os);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue