blob: 64b91f8ac12a836e5e0fbeb46e069e186e1d4c5d [file] [log] [blame]
#include "TVSnapshot.h"
#include "llvm/Bytecode/Reader.h"
#include "llvm-tv/Config.h"
using namespace llvm;
void TVSnapshot::readBytecodeFile () {
std::string errorStr;
M = ParseBytecodeFile (filename, &errorStr);
if (!M)
throw std::string ("Error reading bytecode from '" + filename + "': "
+ errorStr);
}