Home | History | Annotate | Download | only in tools

Lines Matching refs:bitcode

24 #include <llvm/Bitcode/ReaderWriter.h>
50 // information about a supplied bitcode input file.
219 static size_t readBitcode(const char **bitcode) {
244 *bitcode = (const char*) calloc(1, bitcodeSize + 1);
245 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in);
255 static void releaseBitcode(const char **bitcode) {
256 if (bitcode && *bitcode) {
257 free((void*) *bitcode);
258 *bitcode = NULL;
270 const char *bitcode = NULL;
271 size_t bitcodeSize = readBitcode(&bitcode);
275 bcinfo::BitcodeWrapper bcWrapper((const char *)bitcode, bitcodeSize);
292 BT.reset(new bcinfo::BitcodeTranslator(bitcode, bitcodeSize, version));
294 fprintf(stderr, "failed to translate bitcode\n");
332 fprintf(stderr, "error: failed to parse bitcode file\n");
353 releaseBitcode(&bitcode);