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
commitea28a67e47fd87c6b78597d90eba543bad4d7468 (patch)
treea2633e2c4e0336fc2a3bf79154a8cc5fc323ec39
parent80f848d0c9c18c0444d2a92444300b816075f42c (diff)
Revert r369210 which got committed to the branch by mistakerelease_80
git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_80@369350 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--bindings/go/llvm/irreader.go37
1 files changed, 0 insertions, 37 deletions
diff --git a/bindings/go/llvm/irreader.go b/bindings/go/llvm/irreader.go
deleted file mode 100644
index 71064497a58..00000000000
--- a/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
-}