Home | History | Annotate | Download | only in tools

Lines Matching refs:bitcode

38 // information about a supplied bitcode input file.
110 static size_t readBitcode(const char **bitcode) {
135 *bitcode = (const char*) calloc(1, bitcodeSize + 1);
136 size_t nread = fread((void*) *bitcode, 1, bitcodeSize, in);
146 static void releaseBitcode(const char **bitcode) {
147 if (bitcode && *bitcode) {
148 free((void*) *bitcode);
149 *bitcode = NULL;
161 const char *bitcode = NULL;
163 size_t bitcodeSize = readBitcode(&bitcode);
172 new bcinfo::BitcodeTranslator(bitcode, bitcodeSize, version);
174 fprintf(stderr, "failed to translate bitcode\n");
191 releaseBitcode(&bitcode);