mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-02 15:45:44 +00:00
Added functions to perform streaming function loading, doxygenified comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8670 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f901d6d99
commit
2f00285b21
@ -12,23 +12,39 @@
|
|||||||
#ifndef LLVM_BYTECODE_READER_H
|
#ifndef LLVM_BYTECODE_READER_H
|
||||||
#define LLVM_BYTECODE_READER_H
|
#define LLVM_BYTECODE_READER_H
|
||||||
|
|
||||||
|
#include "llvm/ModuleProvider.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
class Module;
|
///
|
||||||
|
///
|
||||||
|
AbstractModuleProvider*
|
||||||
|
getBytecodeModuleProvider(const std::string &Filename);
|
||||||
|
|
||||||
// Parse and return a class...
|
///
|
||||||
//
|
///
|
||||||
Module *ParseBytecodeFile(const std::string &Filename,
|
AbstractModuleProvider*
|
||||||
|
getBytecodeBufferModuleProvider(const unsigned char *Buffer,
|
||||||
|
unsigned BufferSize,
|
||||||
|
const std::string &ModuleID);
|
||||||
|
|
||||||
|
/// Parse the given bytecode file
|
||||||
|
///
|
||||||
|
Module* ParseBytecodeFile(const std::string &Filename,
|
||||||
std::string *ErrorStr = 0);
|
std::string *ErrorStr = 0);
|
||||||
Module *ParseBytecodeBuffer(const unsigned char *Buffer, unsigned BufferSize,
|
|
||||||
|
/// Parse a given bytecode buffer
|
||||||
|
///
|
||||||
|
Module* ParseBytecodeBuffer(const unsigned char *Buffer,
|
||||||
|
unsigned BufferSize,
|
||||||
const std::string &ModuleID,
|
const std::string &ModuleID,
|
||||||
std::string *ErrorStr = 0);
|
std::string *ErrorStr = 0);
|
||||||
|
|
||||||
// ReadArchiveFile - Read bytecode files from the specfied .a file, returning
|
/// ReadArchiveFile - Read bytecode files from the specfied .a file, returning
|
||||||
// true on error, or false on success.
|
/// true on error, or false on success.
|
||||||
//
|
///
|
||||||
bool ReadArchiveFile(const std::string &Filename, std::vector<Module*> &Objects,
|
bool ReadArchiveFile(const std::string &Filename,
|
||||||
|
std::vector<Module*> &Objects,
|
||||||
std::string *ErrorStr = 0);
|
std::string *ErrorStr = 0);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user