LLVM API Documentation
#include "llvm/Bytecode/Analyzer.h"
#include "llvm/Bytecode/Reader.h"
#include "Reader.h"
#include "llvm/Module.h"
#include "llvm/Instructions.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/System/MappedFile.h"
#include <cerrno>
#include <iostream>
#include <memory>
Include dependency graph for ReaderWrappers.cpp:
Go to the source code of this file.
Functions | |
static ModuleProvider * | CheckVarargs (ModuleProvider *MP) |
ModuleProvider * | llvm::getBytecodeBufferModuleProvider (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, BytecodeHandler *H) |
Module * | llvm::ParseBytecodeBuffer (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, std::string *ErrorStr) |
Parse a given bytecode buffer. | |
ModuleProvider * | llvm::getBytecodeModuleProvider (const std::string &Filename, BytecodeHandler *H) |
Module * | llvm::ParseBytecodeFile (const std::string &Filename, std::string *ErrorStr) |
Parse the given bytecode file. | |
Module * | llvm::AnalyzeBytecodeFile (const std::string &Filename, BytecodeAnalysis &bca, std::string *ErrorStr, std::ostream *output) |
Analyze contents of a bytecode File. | |
Module * | llvm::AnalyzeBytecodeBuffer (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, BytecodeAnalysis &bca, std::string *ErrorStr, std::ostream *output) |
Analyze contents of a bytecode buffer. | |
bool | llvm::GetBytecodeDependentLibraries (const std::string &fname, Module::LibraryListType &deplibs) |
Get the list of dependent libraries from a bytecode file. | |
static void | getSymbols (Module *M, std::vector< std::string > &symbols) |
bool | llvm::GetBytecodeSymbols (const sys::Path &fName, std::vector< std::string > &symbols) |
Get a bytecode file's externally visibile defined global symbols. | |
ModuleProvider * | llvm::GetBytecodeSymbols (const unsigned char *Buffer, unsigned Length, const std::string &ModuleID, std::vector< std::string > &symbols) |
Get a bytecode file's externally visibile defined global symbols. | |
Variables | |
sys::MappedFile | mapFile |
const unsigned char * | Buffer |
bool | MustDelete |
std::vector< unsigned char > | FileData |
unsigned char * | FileBuf |
static ModuleProvider* CheckVarargs | ( | ModuleProvider * | MP | ) | [static] |
Definition at line 159 of file ReaderWrappers.cpp.
References E, F, llvm::ModuleProvider::getModule(), llvm::Module::getNamedFunction(), llvm::Module::getOrInsertFunction(), I, M, llvm::ModuleProvider::materializeModule(), and RetTy.
Referenced by llvm::getBytecodeBufferModuleProvider(), and llvm::getBytecodeModuleProvider().
static void getSymbols | ( | Module * | M, | |
std::vector< std::string > & | symbols | |||
) | [static] |
Definition at line 360 of file ReaderWrappers.cpp.
References llvm::Module::begin(), llvm::Module::end(), GI, llvm::Module::global_begin(), llvm::Module::global_end(), and M.
Referenced by llvm::GetBytecodeSymbols().
const unsigned char* Buffer |
Definition at line 66 of file ReaderWrappers.cpp.
Referenced by llvm::ftostr(), llvm::ParseException::getMessage(), isFPCSafeToPrint(), lle_X_fprintf(), lle_X_printf(), lle_X_sprintf(), llvm::utohexstr(), llvm::utostr(), and llvm::WriteBytecodeToFile().
unsigned char* FileBuf |
Definition at line 122 of file ReaderWrappers.cpp.
std::vector<unsigned char> FileData |
Definition at line 121 of file ReaderWrappers.cpp.
Definition at line 37 of file ReaderWrappers.cpp.
bool MustDelete |
Definition at line 67 of file ReaderWrappers.cpp.