aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2019-08-20 09:10:27 +0000
committerHans Wennborg <hans@hanshq.net>2019-08-20 09:10:27 +0000
commit89de0d8dfbb9a6ff1f8b141ed70b563ecc094878 (patch)
tree9b2fc4dec79b775ebe24f1d86a087dfad5433ecb
parent465f4e2c94aaf044beb4ecb3529ed8c2ed04fe73 (diff)
downloadllvm-89de0d8dfbb9a6ff1f8b141ed70b563ecc094878.zip
llvm-89de0d8dfbb9a6ff1f8b141ed70b563ecc094878.tar.gz
llvm-89de0d8dfbb9a6ff1f8b141ed70b563ecc094878.tar.bz2
Revert r369210 which got committed to the branch by mistakerelease/8.x
llvm-svn: 369350
-rw-r--r--llvm/bindings/go/llvm/irreader.go37
1 files changed, 0 insertions, 37 deletions
diff --git a/llvm/bindings/go/llvm/irreader.go b/llvm/bindings/go/llvm/irreader.go
deleted file mode 100644
index 7106449..0000000
--- a/llvm/bindings/go/llvm/irreader.go
+++ /dev/null
@@ -1,37 +0,0 @@
-//===- irreader.go - Bindings for irreader --------------------------------===//
-//
-// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-//
-//===----------------------------------------------------------------------===//
-//
-// This file defines bindings for the irreader component.
-//
-//===----------------------------------------------------------------------===//
-
-package llvm
-
-/*
-#include "llvm-c/IRReader.h"
-#include <stdlib.h>
-*/
-import "C"
-
-import (
- "errors"
- "unsafe"
-)
-
-// ParseIR parses the textual IR given in the memory buffer and returns a new
-// LLVM module in this context.
-func (c *Context) ParseIR(buf MemoryBuffer) (Module, error) {
- var m Module
- var errmsg *C.char
- if C.LLVMParseIRInContext(c.C, buf.C, &m.C, &errmsg) != 0 {
- err := errors.New(C.GoString(errmsg))
- C.free(unsafe.Pointer(errmsg))
- return Module{}, err
- }
- return m, nil
-}