diff options
| author | Charles Lew <crlf0710@gmail.com> | 2021-06-20 17:43:25 +0800 |
|---|---|---|
| committer | Charles Lew <crlf0710@gmail.com> | 2021-06-28 19:39:48 +0800 |
| commit | d3ff497bec60687e3e1bdde383bd0b9dc74b5870 (patch) | |
| tree | f12696156730de79bc337241e6a2dc4e9cfad0e3 /compiler/rustc_codegen_llvm | |
| parent | 654e3345e535913653a2bad4204c31f9ccedb3c4 (diff) | |
| download | rust-d3ff497bec60687e3e1bdde383bd0b9dc74b5870.tar.gz rust-d3ff497bec60687e3e1bdde383bd0b9dc74b5870.zip | |
Update other codegens to use tcx managed vtable allocations.
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index 58af9d4cd04..df5ad8ecc27 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -282,6 +282,10 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> { } } + fn const_data_from_alloc(&self, alloc: &Allocation) -> Self::Value { + const_alloc_to_llvm(self, alloc) + } + fn from_const_alloc( &self, layout: TyAndLayout<'tcx>, |
