diff options
Diffstat (limited to 'include/llvm/Wrap/wrapper_input.h')
-rw-r--r-- | include/llvm/Wrap/wrapper_input.h | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/include/llvm/Wrap/wrapper_input.h b/include/llvm/Wrap/wrapper_input.h deleted file mode 100644 index cde918083a..0000000000 --- a/include/llvm/Wrap/wrapper_input.h +++ /dev/null @@ -1,38 +0,0 @@ -/* Copyright 2012 The Native Client Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can - * be found in the LICENSE file. - */ - -// Define a generic interface to a file/memory region that contains -// a bitcode file, a wrapped bitcode file, or a data file to wrap. - -#ifndef LLVM_WRAP_WRAPPER_INPUT_H__ -#define LLVM_WRAP_WRAPPER_INPUT_H__ - -#include <stdint.h> -#include <sys/types.h> - -#include "llvm/Support/support_macros.h" - -// The following is a generic interface to a file/memory region that contains -// a bitcode file, a wrapped bitcode file, or data file to wrap. -class WrapperInput { - public: - WrapperInput() {} - virtual ~WrapperInput() {} - // Tries to read the requested number of bytes into the buffer. Returns the - // actual number of bytes read. - virtual size_t Read(uint8_t* buffer, size_t wanted) = 0; - // Returns true if at end of input. Note: May return false until - // Read is called, and returns 0. - virtual bool AtEof() = 0; - // Returns the size of the input (in bytes). - virtual off_t Size() = 0; - // Moves to the given offset within the input region. Returns false - // if unable to move to that position. - virtual bool Seek(uint32_t pos) = 0; - private: - DISALLOW_CLASS_COPY_AND_ASSIGN(WrapperInput); -}; - -#endif // LLVM_WRAP_WRAPPER_INPUT_H__ |