diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2022-03-01 00:53:25 +0000 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2022-04-15 14:36:30 +0100 |
| commit | 547405e80120117f3299d7271c839455bb670ad6 (patch) | |
| tree | 3437956c69eb10d3adb841ab126d374d305327fb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | dc345d8bffdd95c65ba537c32a6900b8c19c049d (diff) | |
| download | rust-547405e80120117f3299d7271c839455bb670ad6.tar.gz rust-547405e80120117f3299d7271c839455bb670ad6.zip | |
Add codegen for global_asm! sym operands
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
| -rw-r--r-- | compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index 51739df067f..3ed4396d1e9 100644 --- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp +++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp @@ -1835,3 +1835,9 @@ extern "C" void LLVMRustContextConfigureDiagnosticHandler( unwrap(C)->setDiagnosticHandler(std::make_unique<RustDiagnosticHandler>( DiagnosticHandlerCallback, DiagnosticHandlerContext, RemarkAllPasses, Passes)); } + +extern "C" void LLVMRustGetMangledName(LLVMValueRef V, RustStringRef Str) { + RawRustStringOstream OS(Str); + GlobalValue *GV = unwrap<GlobalValue>(V); + Mangler().getNameWithPrefix(OS, GV, true); +} |
