diff options
| author | Denis Merigoux <denis.merigoux@gmail.com> | 2018-09-24 17:35:39 +0200 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2018-11-16 14:36:38 +0200 |
| commit | 97825a36bec3bdad71669834178a85d7fdff43bc (patch) | |
| tree | 6f77b5d8efc82847acf2affaa2fcff9040c5ac2a /src/librustc_codegen_llvm/builder.rs | |
| parent | ac34068ed9c1fa96d7fd172c1033df96db1d7143 (diff) | |
| download | rust-97825a36bec3bdad71669834178a85d7fdff43bc.tar.gz rust-97825a36bec3bdad71669834178a85d7fdff43bc.zip | |
Move doc to trait declarations
Diffstat (limited to 'src/librustc_codegen_llvm/builder.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/builder.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustc_codegen_llvm/builder.rs b/src/librustc_codegen_llvm/builder.rs index 9c7e7951de8..642c36e886e 100644 --- a/src/librustc_codegen_llvm/builder.rs +++ b/src/librustc_codegen_llvm/builder.rs @@ -1265,7 +1265,6 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { } } - /// Returns the ptr value that should be used for storing `val`. fn check_store<'b>(&self, val: &'ll Value, ptr: &'ll Value) -> &'ll Value { @@ -1285,7 +1284,6 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { } } - /// Returns the args that should be used for a call to `llfn`. fn check_call<'b>(&self, typ: &str, llfn: &'ll Value, @@ -1336,14 +1334,6 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> { self.call_lifetime_intrinsic("llvm.lifetime.end", ptr, size); } - /// If LLVM lifetime intrinsic support is enabled (i.e. optimizations - /// on), and `ptr` is nonzero-sized, then extracts the size of `ptr` - /// and the intrinsic for `lt` and passes them to `emit`, which is in - /// charge of generating code to call the passed intrinsic on whatever - /// block of generated code is targeted for the intrinsic. - /// - /// If LLVM lifetime intrinsic support is disabled (i.e. optimizations - /// off) or `ptr` is zero-sized, then no-op (does not call `emit`). fn call_lifetime_intrinsic(&self, intrinsic: &str, ptr: &'ll Value, size: Size) { if self.cx.sess().opts.optimize == config::OptLevel::No { return; |
