diff options
| author | Graydon Hoare <[email protected]> | 2011-03-21 23:06:42 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-21 23:06:42 -0700 |
| commit | 7ac885ee8cb18fc2cb974cff06190532680cf29b (patch) | |
| tree | f1a354cd2a763949a29856bac7e158d0f4f77b3b /src/llvmext/RustWrapper.cpp | |
| parent | Make floating-point operations work (neg, add, sub, mul, div, rem, (diff) | |
| download | rust-7ac885ee8cb18fc2cb974cff06190532680cf29b.tar.xz rust-7ac885ee8cb18fc2cb974cff06190532680cf29b.zip | |
Repair some fallout from pcwalton's last few build changes.
Diffstat (limited to 'src/llvmext/RustWrapper.cpp')
| -rw-r--r-- | src/llvmext/RustWrapper.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/llvmext/RustWrapper.cpp b/src/llvmext/RustWrapper.cpp deleted file mode 100644 index a604e4c2..00000000 --- a/src/llvmext/RustWrapper.cpp +++ /dev/null @@ -1,31 +0,0 @@ -//===- RustWrapper.cpp - Rust wrapper for core functions --------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines alternate interfaces to core functions that are more -// readily callable by Rust's FFI. -// -//===----------------------------------------------------------------------===// - -#include "llvm-c/Core.h" -#include "llvm-c/Object.h" -#include <cstdlib> - -static char *LLVMRustError; - -extern "C" LLVMMemoryBufferRef -LLVMRustCreateMemoryBufferWithContentsOfFile(const char *Path) { - LLVMMemoryBufferRef MemBuf = NULL; - LLVMCreateMemoryBufferWithContentsOfFile(Path, &MemBuf, &LLVMRustError); - return MemBuf; -} - -extern "C" const char *LLVMRustGetLastError(void) { - return LLVMRustError; -} - |