summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-11-13 15:35:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-11-13 15:35:13 +0000
commit505d2408a1555cddba6134e352f20076b8ac7725 (patch)
tree2435b5b763e018a3918e1891484010dd7be9923d /llvm
parentcf6ac12e23f162e93e291e66f0852b2ccf06ce62 (diff)
downloadbcm5719-llvm-505d2408a1555cddba6134e352f20076b8ac7725.tar.gz
bcm5719-llvm-505d2408a1555cddba6134e352f20076b8ac7725.zip
Make sure LLVMLoadLibraryPermanently gets an extern "C" symbol.
Otherwise it's impossible to use it. Also don't include C++ headers in a C header. llvm-svn: 194581
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm-c/Support.h1
-rw-r--r--llvm/lib/Support/DynamicLibrary.cpp2
2 files changed, 1 insertions, 2 deletions
diff --git a/llvm/include/llvm-c/Support.h b/llvm/include/llvm-c/Support.h
index 705e5f292b1..7f03ede604a 100644
--- a/llvm/include/llvm-c/Support.h
+++ b/llvm/include/llvm-c/Support.h
@@ -15,7 +15,6 @@
#define LLVM_C_SUPPORT_H
#include "llvm-c/Core.h"
-#include "llvm/Support/DynamicLibrary.h"
#ifdef __cplusplus
extern "C" {
diff --git a/llvm/lib/Support/DynamicLibrary.cpp b/llvm/lib/Support/DynamicLibrary.cpp
index e149dc49fa1..a825c687bdc 100644
--- a/llvm/lib/Support/DynamicLibrary.cpp
+++ b/llvm/lib/Support/DynamicLibrary.cpp
@@ -19,7 +19,7 @@
#include "llvm/ADT/StringMap.h"
#include "llvm/Config/config.h"
#include "llvm/Support/Mutex.h"
-#include "llvm-c/Core.h"
+#include "llvm-c/Support.h"
#include <cstdio>
#include <cstring>
OpenPOWER on IntegriCloud