diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-12-31 22:20:43 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-31 22:20:43 +0100 |
| commit | 55cfcd596fabf4758f31e098a14542a52c36f7ad (patch) | |
| tree | 08f6b85cedb1362b37f0282ab122db254a407b2f /compiler/rustc_codegen_llvm/src/common.rs | |
| parent | 44e3daf5eee8263dfc3a2509e78ddd1f6f783a0e (diff) | |
| parent | 5b32ab671a03e0804e864907d7be4c775b4c6403 (diff) | |
| download | rust-55cfcd596fabf4758f31e098a14542a52c36f7ad.tar.gz rust-55cfcd596fabf4758f31e098a14542a52c36f7ad.zip | |
Rollup merge of #80323 - camelid:codegen-base-docs, r=nagisa
Update and improve `rustc_codegen_{llvm,ssa}` docs
Fixes #75342.
These docs were very out of date and misleading. They even said that
they codegen'd the *AST*!
For some reason, the `rustc_codegen_ssa::base` docs were exactly
identical to the `rustc_codegen_llvm::base` docs. They didn't really
make sense, because they had LLVM-specific information even though
`rustc_codegen_ssa` is supposed to be somewhat generic. So I removed
them as they were misleading.
r? ``@pnkfelix`` maybe?
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/common.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/common.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/common.rs b/compiler/rustc_codegen_llvm/src/common.rs index 34e1b7a6045..58af9d4cd04 100644 --- a/compiler/rustc_codegen_llvm/src/common.rs +++ b/compiler/rustc_codegen_llvm/src/common.rs @@ -314,6 +314,7 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> { } } +/// Get the [LLVM type][Type] of a [`Value`]. pub fn val_ty(v: &Value) -> &Type { unsafe { llvm::LLVMTypeOf(v) } } |
