From 613d13beb03bb56a17e6b3262c5e8e539a7e9db8 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 19 Aug 2011 01:36:54 +0000 Subject: [PATCH] C API functions must be able to see their extern "C" definitions, or it will be impossible to call them from C. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138022 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm-c/Core.h | 3 +++ lib/Analysis/Analysis.cpp | 1 + lib/Transforms/IPO/IPO.cpp | 1 + 3 files changed, 5 insertions(+) diff --git a/include/llvm-c/Core.h b/include/llvm-c/Core.h index 2562757a2ed..582d769f459 100644 --- a/include/llvm-c/Core.h +++ b/include/llvm-c/Core.h @@ -834,6 +834,9 @@ LLVMValueRef LLVMBuildInvoke(LLVMBuilderRef, LLVMValueRef Fn, LLVMValueRef *Args, unsigned NumArgs, LLVMBasicBlockRef Then, LLVMBasicBlockRef Catch, const char *Name); +LLVMValueRef LLVMBuildLandingPad(LLVMBuilderRef B, LLVMTypeRef Ty, + LLVMValueRef PersFn, unsigned NumClauses, + const char *Name); LLVMValueRef LLVMBuildResume(LLVMBuilderRef B, LLVMValueRef Exn); LLVMValueRef LLVMBuildUnreachable(LLVMBuilderRef); diff --git a/lib/Analysis/Analysis.cpp b/lib/Analysis/Analysis.cpp index 2e28e41aaab..0ba6af93b51 100644 --- a/lib/Analysis/Analysis.cpp +++ b/lib/Analysis/Analysis.cpp @@ -8,6 +8,7 @@ //===----------------------------------------------------------------------===// #include "llvm-c/Analysis.h" +#include "llvm-c/Initialization.h" #include "llvm/InitializePasses.h" #include "llvm/Analysis/Verifier.h" #include diff --git a/lib/Transforms/IPO/IPO.cpp b/lib/Transforms/IPO/IPO.cpp index b6008b7c3d8..6233922db92 100644 --- a/lib/Transforms/IPO/IPO.cpp +++ b/lib/Transforms/IPO/IPO.cpp @@ -13,6 +13,7 @@ // //===----------------------------------------------------------------------===// +#include "llvm-c/Initialization.h" #include "llvm-c/Transforms/IPO.h" #include "llvm/InitializePasses.h" #include "llvm/PassManager.h" -- 2.34.1