aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-10-05 23:59:36 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-10-05 23:59:36 +0000
commitacd96191cd8d85f376ec0baafdc4f21b3042f677 (patch)
tree9cc333e5e58b4071e8aefc5c5e1e1e60fbb71819 /lib
parentbf287b63b33aafc07e29e91fd1ec00e92a6ad0c9 (diff)
downloadexternal_llvm-acd96191cd8d85f376ec0baafdc4f21b3042f677.tar.gz
external_llvm-acd96191cd8d85f376ec0baafdc4f21b3042f677.tar.bz2
external_llvm-acd96191cd8d85f376ec0baafdc4f21b3042f677.zip
Removing the silly CHelpers header by rolling wrap and unwrap into the C
bindings headers themselves, hidden behind #ifdef __cplusplus. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42666 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Bitcode/Writer/BitWriter.cpp1
-rw-r--r--lib/VMCore/Core.cpp14
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/Bitcode/Writer/BitWriter.cpp b/lib/Bitcode/Writer/BitWriter.cpp
index b2e7ac2ec0..8f562e98d9 100644
--- a/lib/Bitcode/Writer/BitWriter.cpp
+++ b/lib/Bitcode/Writer/BitWriter.cpp
@@ -9,7 +9,6 @@
#include "llvm-c/BitWriter.h"
#include "llvm/Bitcode/ReaderWriter.h"
-#include "llvm/Support/CHelpers.h"
#include <fstream>
using namespace llvm;
diff --git a/lib/VMCore/Core.cpp b/lib/VMCore/Core.cpp
index f35951d45b..b6a825462a 100644
--- a/lib/VMCore/Core.cpp
+++ b/lib/VMCore/Core.cpp
@@ -17,25 +17,11 @@
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/GlobalVariable.h"
-#include "llvm/Support/CHelpers.h"
-#include "llvm/Support/LLVMBuilder.h"
#include "llvm/TypeSymbolTable.h"
#include <cassert>
using namespace llvm;
-namespace {
- /// Opaque builder conversions.
- ///
- inline LLVMBuilder *unwrap(LLVMBuilderRef B) {
- return reinterpret_cast<LLVMBuilder*>(B);
- }
-
- inline LLVMBuilderRef wrap(LLVMBuilder *B) {
- return reinterpret_cast<LLVMBuilderRef>(B);
- }
-}
-
/*===-- Operations on modules ---------------------------------------------===*/