about summary refs log tree commit diff
path: root/src/librustc_codegen_llvm/llvm
diff options
context:
space:
mode:
authorEduard-Mihai Burtescu <edy.burt@gmail.com>2019-09-04 15:21:46 +0300
committerEduard-Mihai Burtescu <edy.burt@gmail.com>2019-09-06 16:57:20 +0300
commiteedf555d0c041caa0a9e7c8cd4394716e637feaf (patch)
treed8b83038e8981d4f38b6d1eb97c47e44ec4cb1cd /src/librustc_codegen_llvm/llvm
parent1fb3c4ec7ca37d33bd1e68cce669d171c2752615 (diff)
downloadrust-eedf555d0c041caa0a9e7c8cd4394716e637feaf.tar.gz
rust-eedf555d0c041caa0a9e7c8cd4394716e637feaf.zip
rustc_codegen_llvm: give names to non-alloca variable values.
Diffstat (limited to 'src/librustc_codegen_llvm/llvm')
-rw-r--r--src/librustc_codegen_llvm/llvm/ffi.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/llvm/ffi.rs b/src/librustc_codegen_llvm/llvm/ffi.rs
index 9f9410560e3..b07214fdc03 100644
--- a/src/librustc_codegen_llvm/llvm/ffi.rs
+++ b/src/librustc_codegen_llvm/llvm/ffi.rs
@@ -806,6 +806,7 @@ extern "C" {
     pub fn LLVMRustRemoveFunctionAttributes(Fn: &Value, index: c_uint, attr: Attribute);
 
     // Operations on parameters
+    pub fn LLVMIsAArgument(Val: &Value) -> Option<&Value>;
     pub fn LLVMCountParams(Fn: &Value) -> c_uint;
     pub fn LLVMGetParam(Fn: &Value, Index: c_uint) -> &Value;
 
@@ -818,6 +819,7 @@ extern "C" {
     pub fn LLVMDeleteBasicBlock(BB: &BasicBlock);
 
     // Operations on instructions
+    pub fn LLVMIsAInstruction(Val: &Value) -> Option<&Value>;
     pub fn LLVMGetFirstBasicBlock(Fn: &Value) -> &BasicBlock;
 
     // Operations on call sites