about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/context.rs
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-06-01 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-06-02 08:49:58 +0200
commitc1f6495b8e19325a57702a7ce016e6d5a3f25e26 (patch)
tree32e2416abac1af9db40a68fbc609259923f0a4d1 /compiler/rustc_codegen_llvm/src/context.rs
parentc4f186f0ea443db4aacdd90a2515632c20ccd3fe (diff)
downloadrust-c1f6495b8e19325a57702a7ce016e6d5a3f25e26.tar.gz
rust-c1f6495b8e19325a57702a7ce016e6d5a3f25e26.zip
Miscellaneous inlining improvements
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/context.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/context.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/context.rs b/compiler/rustc_codegen_llvm/src/context.rs
index f5c54b11c08..6aa952462fa 100644
--- a/compiler/rustc_codegen_llvm/src/context.rs
+++ b/compiler/rustc_codegen_llvm/src/context.rs
@@ -765,18 +765,21 @@ impl<'b, 'tcx> CodegenCx<'b, 'tcx> {
 }
 
 impl HasDataLayout for CodegenCx<'ll, 'tcx> {
+    #[inline]
     fn data_layout(&self) -> &TargetDataLayout {
         &self.tcx.data_layout
     }
 }
 
 impl HasTargetSpec for CodegenCx<'ll, 'tcx> {
+    #[inline]
     fn target_spec(&self) -> &Target {
         &self.tcx.sess.target
     }
 }
 
 impl ty::layout::HasTyCtxt<'tcx> for CodegenCx<'ll, 'tcx> {
+    #[inline]
     fn tcx(&self) -> TyCtxt<'tcx> {
         self.tcx
     }