llvm.org GIT mirror llvm / 44dadff
switch tools to bitcode instead of bytecode git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36868 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 12 years ago
22 changed file(s) with 70 addition(s) and 236 deletion(s). Raw diff Collapse all Expand all
1212 //===----------------------------------------------------------------------===//
1313
1414 #include "llvm/Module.h"
15 #include "llvm/Bytecode/Archive.h"
15 #include "llvm/Bitcode/Archive.h"
1616 #include "llvm/Support/CommandLine.h"
17 #include "llvm/Support/Compressor.h"
1817 #include "llvm/Support/ManagedStatic.h"
1918 #include "llvm/System/Signals.h"
2019 #include
363362 if (Verbose)
364363 std::cout << "Printing " << I->getPath().toString() << "\n";
365364
366 if (I->isCompressedBytecode())
367 Compressor::decompressToStream(data+4,I->getSize()-4,std::cout);
368 else if (I->isCompressed()) {
369 Compressor::decompressToStream(data,I->getSize(),std::cout);
370 } else {
371 unsigned len = I->getSize();
372 std::cout.write(data, len);
373 }
365 unsigned len = I->getSize();
366 std::cout.write(data, len);
374367 } else {
375368 countDown--;
376369 }
468461 const char* data = reinterpret_cast(I->getData());
469462 unsigned len = I->getSize();
470463
471 // Write the data, making sure to uncompress things first
472 if (I->isCompressed()) {
473 Compressor::decompressToStream(data,len,file);
474 } else {
475 file.write(data,len);
476 }
464 // Write the data.
465 file.write(data,len);
477466 file.close();
478467
479468 // If we're supposed to retain the original modification times, etc. do so
88
99 LEVEL = ../..
1010 TOOLNAME = llvm-as
11 LINK_COMPONENTS := asmparser bcwriter bitwriter
11 LINK_COMPONENTS := asmparser bitwriter
1212 REQUIRES_EH := 1
1313
1414 include $(LEVEL)/Makefile.common
88 //
99 // This utility may be invoked in the following manner:
1010 // llvm-as --help - Output information about command line switches
11 // llvm-as [options] - Read LLVM asm from stdin, write bytecode to stdout
12 // llvm-as [options] x.ll - Read LLVM asm from the x.ll file, write bytecode
11 // llvm-as [options] - Read LLVM asm from stdin, write bitcode to stdout
12 // llvm-as [options] x.ll - Read LLVM asm from the x.ll file, write bitcode
1313 // to the x.bc file.
1414 //
1515 //===----------------------------------------------------------------------===//
1616
1717 #include "llvm/Module.h"
1818 #include "llvm/Assembly/Parser.h"
19 #include "llvm/Bytecode/Writer.h"
2019 #include "llvm/Analysis/Verifier.h"
2120 #include "llvm/Bitcode/ReaderWriter.h"
2221 #include "llvm/Support/CommandLine.h"
4342 DumpAsm("d", cl::desc("Print assembly as parsed"), cl::Hidden);
4443
4544 static cl::opt
46 NoCompress("disable-compression", cl::init(true),
47 cl::desc("Don't compress the generated bytecode"));
48
49 static cl::opt
5045 DisableVerify("disable-verify", cl::Hidden,
5146 cl::desc("Do not run verifier on input LLVM (dangerous!)"));
52
53 static cl::opt
54 EnableBitcode("bitcode", cl::desc("Emit bitcode"));
55
5647
5748 int main(int argc, char **argv) {
5849 llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
133124 return 1;
134125 }
135126
136 if (Force || !CheckBytecodeOutputToConsole(Out,true)) {
137 if (EnableBitcode) {
138 WriteBitcodeToFile(M.get(), *Out);
139 } else {
140 OStream L(*Out);
141 WriteBytecodeToFile(M.get(), L, !NoCompress);
142 }
143 }
127 if (Force || !CheckBytecodeOutputToConsole(Out,true))
128 WriteBitcodeToFile(M.get(), *Out);
144129 } catch (const std::string& msg) {
145130 cerr << argv[0] << ": " << msg << "\n";
146131 exitCode = 1;
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-bcanalyzer
11 LINK_COMPONENTS := bcreader
11 LINK_COMPONENTS := bitreader
1212 REQUIRES_EH := 1
1313
1414 include $(LEVEL)/Makefile.common
1212 //
1313 // Options:
1414 // --help - Output information about command line switches
15 // --nodetails - Don't print out detailed informaton about individual
16 // blocks and functions
1715 // --dump - Dump low-level bytecode structure in readable format
1816 //
1917 // This tool provides analytical information about a bytecode file. It is
2119 // produces on std::out a summary of the bytecode file that shows various
2220 // statistics about the contents of the file. By default this information is
2321 // detailed and contains information about individual bytecode blocks and the
24 // functions in the module. To avoid this more detailed output, use the
25 // -nodetails option to limit the output to just module level information.
22 // functions in the module.
2623 // The tool is also able to print a bytecode file in a straight forward text
2724 // format that shows the containment and relationships of the information in
2825 // the bytecode file (-dump option).
3229 #include "llvm/Analysis/Verifier.h"
3330 #include "llvm/Bitcode/BitstreamReader.h"
3431 #include "llvm/Bitcode/LLVMBitCodes.h"
35 #include "llvm/Bytecode/Analyzer.h"
3632 #include "llvm/Support/CommandLine.h"
37 #include "llvm/Support/Compressor.h"
3833 #include "llvm/Support/ManagedStatic.h"
3934 #include "llvm/Support/MemoryBuffer.h"
4035 #include "llvm/System/Signals.h"
36 #include
4137 #include
4238 #include
4339 #include
4945 static cl::opt
5046 OutputFilename("-o", cl::init("-"), cl::desc(""));
5147
52 static cl::opt NoDetails("nodetails", cl::desc("Skip detailed output"));
5348 static cl::opt Dump("dump", cl::desc("Dump low level bytecode trace"));
54 static cl::opt Verify("verify", cl::desc("Progressively verify module"));
5549
5650 //===----------------------------------------------------------------------===//
5751 // Bitcode specific analysis.
5852 //===----------------------------------------------------------------------===//
5953
60 static cl::opt Bitcode("bitcode", cl::desc("Read a bitcode file"));
6154 static cl::opt NoHistogram("disable-histogram",
6255 cl::desc("Do not print per-code histogram"));
6356
500493 }
501494
502495
503 //===----------------------------------------------------------------------===//
504 // Bytecode specific analysis.
505 //===----------------------------------------------------------------------===//
506
507496 int main(int argc, char **argv) {
508497 llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
509498 cl::ParseCommandLineOptions(argc, argv, " llvm-bcanalyzer file analyzer\n");
510499
511500 sys::PrintStackTraceOnErrorSignal();
512501
513 if (Bitcode)
514 return AnalyzeBitcode();
515
516 try {
517 std::ostream *Out = &std::cout; // Default to printing to stdout...
518 std::string ErrorMessage;
519 BytecodeAnalysis bca;
520
521 /// Determine what to generate
522 bca.detailedResults = !NoDetails;
523 bca.progressiveVerify = Verify;
524
525 /// Analyze the bytecode file
526 Module* M = AnalyzeBytecodeFile(InputFilename, bca,
527 Compressor::decompressToNewBuffer,
528 &ErrorMessage, (Dump?Out:0));
529
530 // All that bcanalyzer does is write the gathered statistics to the output
531 PrintBytecodeAnalysis(bca,*Out);
532
533 if (M && Verify) {
534 std::string verificationMsg;
535 if (verifyModule(*M, ReturnStatusAction, &verificationMsg))
536 std::cerr << "Final Verification Message: " << verificationMsg << "\n";
537 }
538
539 if (Out != &std::cout) {
540 ((std::ofstream*)Out)->close();
541 delete Out;
542 }
543 return 0;
544 } catch (const std::string& msg) {
545 std::cerr << argv[0] << ": " << msg << "\n";
546 } catch (...) {
547 std::cerr << argv[0] << ": Unexpected unknown exception occurred.\n";
548 }
549 return 1;
550 }
502 return AnalyzeBitcode();
503 }
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-dis
11 LINK_COMPONENTS := bcreader bitreader
11 LINK_COMPONENTS := bitreader
1212 REQUIRES_EH := 1
1313
1414 include $(LEVEL)/Makefile.common
1818 #include "llvm/Module.h"
1919 #include "llvm/PassManager.h"
2020 #include "llvm/Bitcode/ReaderWriter.h"
21 #include "llvm/Bytecode/Reader.h"
2221 #include "llvm/Assembly/PrintModulePass.h"
23 #include "llvm/Support/Compressor.h"
2422 #include "llvm/Support/CommandLine.h"
2523 #include "llvm/Support/ManagedStatic.h"
2624 #include "llvm/Support/MemoryBuffer.h"
4442 static cl::opt
4543 DontPrint("disable-output", cl::desc("Don't output the .ll file"), cl::Hidden);
4644
47 static cl::opt
48 Bitcode("bitcode", cl::desc("Read a bitcode file"));
49
5045 int main(int argc, char **argv) {
5146 llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
5247 try {
5853
5954 std::auto_ptr M;
6055
61 if (Bitcode) {
62 MemoryBuffer *Buffer
63 = MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size());
56 MemoryBuffer *Buffer
57 = MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size());
6458
65 if (Buffer == 0)
66 ErrorMessage = "Error reading file '" + InputFilename + "'";
67 else
68 M.reset(ParseBitcodeFile(Buffer, &ErrorMessage));
69
70 delete Buffer;
71 } else {
72 M.reset(ParseBytecodeFile(InputFilename,
73 Compressor::decompressToNewBuffer,
74 &ErrorMessage));
75 }
59 if (Buffer == 0)
60 ErrorMessage = "Error reading file '" + InputFilename + "'";
61 else
62 M.reset(ParseBitcodeFile(Buffer, &ErrorMessage));
63 delete Buffer;
7664
7765 if (M.get() == 0) {
7866 cerr << argv[0] << ": ";
99 LEVEL = ../..
1010
1111 TOOLNAME = llvm-extract
12 LINK_COMPONENTS := bcreader bcwriter ipo bitreader bitwriter
12 LINK_COMPONENTS := ipo bitreader bitwriter
1313
1414 include $(LEVEL)/Makefile.common
1414 #include "llvm/Module.h"
1515 #include "llvm/PassManager.h"
1616 #include "llvm/Bitcode/ReaderWriter.h"
17 #include "llvm/Bytecode/Reader.h"
18 #include "llvm/Bytecode/WriteBytecodePass.h"
1917 #include "llvm/Transforms/IPO.h"
2018 #include "llvm/Target/TargetData.h"
2119 #include "llvm/Support/CommandLine.h"
22 #include "llvm/Support/Compressor.h"
2320 #include "llvm/Support/ManagedStatic.h"
2421 #include "llvm/Support/MemoryBuffer.h"
25 #include "llvm/Support/Streams.h"
2622 #include "llvm/System/Signals.h"
2723 #include
2824 #include
2925 #include
3026 using namespace llvm;
31
32 cl::opt Bitcode("bitcode");
3327
3428 // InputFilename - The filename to read from.
3529 static cl::opt
6256
6357 std::auto_ptr M;
6458
65 if (Bitcode) {
66 MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&InputFilename[0],
67 InputFilename.size());
68 if (Buffer == 0) {
69 cerr << "Error reading file '" + InputFilename + "'";
70 return 1;
71 } else {
72 M.reset(ParseBitcodeFile(Buffer));
73 }
74 delete Buffer;
59 MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&InputFilename[0],
60 InputFilename.size());
61 if (Buffer == 0) {
62 cerr << "Error reading file '" + InputFilename + "'";
63 return 1;
7564 } else {
76 M.reset(ParseBytecodeFile(InputFilename,
77 Compressor::decompressToNewBuffer));
65 M.reset(ParseBitcodeFile(Buffer));
7866 }
67 delete Buffer;
7968
8069 if (M.get() == 0) {
8170 cerr << argv[0] << ": bytecode didn't read correctly.\n";
119108 Out = &std::cout;
120109 }
121110
122 OStream L(*Out);
123 if (Bitcode)
124 Passes.add(CreateBitcodeWriterPass(*Out));
125 else
126 Passes.add(new WriteBytecodePass(&L)); // Write bytecode to file...
111 Passes.add(CreateBitcodeWriterPass(*Out));
127112 Passes.run(*M.get());
128113
129114 if (Out != &std::cout)
99 LEVEL = ../..
1010
1111 TOOLNAME = llvm-ld
12 LINK_COMPONENTS = ipo scalaropts linker archive bcwriter bitwriter
12 LINK_COMPONENTS = ipo scalaropts linker archive bitwriter
1313 REQUIRES_EH := 1
1414
1515 include $(LEVEL)/Makefile.common
2525 #include "llvm/Module.h"
2626 #include "llvm/PassManager.h"
2727 #include "llvm/Bitcode/ReaderWriter.h"
28 #include "llvm/Bytecode/Writer.h"
2928 #include "llvm/Target/TargetData.h"
3029 #include "llvm/Target/TargetMachine.h"
3130 #include "llvm/Target/TargetMachineRegistry.h"
4039 #include
4140 using namespace llvm;
4241
43 cl::opt Bitcode("bitcode");
44
4542 // Input/Output Options
4643 static cl::list InputFilenames(cl::Positional, cl::OneOrMore,
4744 cl::desc(""));
7673
7774 static cl::optNativeCBE("native-cbe",
7875 cl::desc("Generate a native binary with the C backend and GCC"));
79
80 static cl::optDisableCompression("disable-compression", cl::init(true),
81 cl::desc("Disable writing of compressed bytecode files"));
8276
8377 static cl::list PostLinkOpts("post-link-opts",
8478 cl::value_desc("path"),
226220 sys::RemoveFileOnSignal(sys::Path(FileName));
227221
228222 // Write it out
229 if (Bitcode) {
230 WriteBitcodeToFile(M, Out);
231 } else {
232 OStream L(Out);
233 WriteBytecodeToFile(M, L, !DisableCompression);
234 }
223 WriteBitcodeToFile(M, Out);
235224
236225 // Close the bytecode file.
237226 Out.close();
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-link
11 LINK_COMPONENTS = linker bcreader bcwriter bitreader bitwriter
11 LINK_COMPONENTS = linker bitreader bitwriter
1212
1313 include $(LEVEL)/Makefile.common
1515 #include "llvm/Module.h"
1616 #include "llvm/Analysis/Verifier.h"
1717 #include "llvm/Bitcode/ReaderWriter.h"
18 #include "llvm/Bytecode/Reader.h"
19 #include "llvm/Bytecode/Writer.h"
2018 #include "llvm/Support/CommandLine.h"
2119 #include "llvm/Support/ManagedStatic.h"
2220 #include "llvm/Support/MemoryBuffer.h"
23 #include "llvm/Support/Streams.h"
2421 #include "llvm/System/Signals.h"
2522 #include "llvm/System/Path.h"
2623 #include
2724 #include
2825 #include
2926 using namespace llvm;
30
31 cl::opt Bitcode("bitcode");
3227
3328 static cl::list
3429 InputFilenames(cl::Positional, cl::OneOrMore,
6459 if (Verbose) cerr << "Loading '" << Filename.c_str() << "'\n";
6560 Module* Result = 0;
6661
67 if (Bitcode) {
68 const std::string &FNStr = Filename.toString();
69 MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&FNStr[0],
70 FNStr.size());
71 if (Buffer == 0)
72 ErrorMessage = "Error reading file '" + FNStr + "'";
73 else
74 Result = ParseBitcodeFile(Buffer, &ErrorMessage);
75 delete Buffer;
76 } else {
77 Result = ParseBytecodeFile(Filename.toString(),
78 Compressor::decompressToNewBuffer,
79 &ErrorMessage);
80 }
62 const std::string &FNStr = Filename.toString();
63 MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&FNStr[0],
64 FNStr.size());
65 if (Buffer == 0)
66 ErrorMessage = "Error reading file '" + FNStr + "'";
67 else
68 Result = ParseBitcodeFile(Buffer, &ErrorMessage);
69 delete Buffer;
8170 if (Result) return std::auto_ptr(Result); // Load successful!
8271
8372 if (Verbose) {
158147 }
159148
160149 if (Verbose) cerr << "Writing bytecode...\n";
161 if (Bitcode) {
162 WriteBitcodeToFile(Composite.get(), *Out);
163 } else {
164 OStream L(*Out);
165 WriteBytecodeToFile(Composite.get(), L, !NoCompress);
166 }
150 WriteBitcodeToFile(Composite.get(), *Out);
167151
168152 if (Out != &std::cout) delete Out;
169153 return 0;
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-nm
11 LINK_COMPONENTS = archive bcreader bitreader
11 LINK_COMPONENTS = archive bitreader
1212
1313 include $(LEVEL)/Makefile.common
1717
1818 #include "llvm/Module.h"
1919 #include "llvm/Bitcode/ReaderWriter.h"
20 #include "llvm/Bytecode/Reader.h"
21 #include "llvm/Bytecode/Archive.h"
20 #include "llvm/Bitcode/Archive.h"
2221 #include "llvm/Support/CommandLine.h"
2322 #include "llvm/Support/ManagedStatic.h"
2423 #include "llvm/Support/MemoryBuffer.h"
2928 #include
3029 #include
3130 using namespace llvm;
32
33 cl::opt Bitcode("bitcode");
3431
3532 namespace {
3633 enum OutputFormatTy { bsd, sysv, posix };
124121 std::string ErrorMessage;
125122 sys::Path aPath(Filename);
126123 // Note: Currently we do not support reading an archive from stdin.
127 if (Filename == "-" || aPath.isBytecodeFile()) {
128 Module *Result = ParseBytecodeFile(Filename,
129 Compressor::decompressToNewBuffer,
130 &ErrorMessage);
131 if (Result) {
132 DumpSymbolNamesFromModule (Result);
133 } else {
134 std::cerr << ToolName << ": " << Filename << ": " << ErrorMessage << "\n";
135 return;
136 }
137 } else if (aPath.isBitcodeFile()) {
124 if (Filename == "-" || aPath.isBitcodeFile()) {
138125 std::auto_ptr Buffer(
139126 MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size()));
140127 Module *Result = 0;
88 LEVEL = ../..
99
1010 TOOLNAME = llvm-prof
11 LINK_COMPONENTS = bcreader bitreader analysis
11 LINK_COMPONENTS = bitreader analysis
1212 REQUIRES_EH := 1
1313
1414 include $(LEVEL)/Makefile.common
1616 #include "llvm/Module.h"
1717 #include "llvm/Assembly/AsmAnnotationWriter.h"
1818 #include "llvm/Analysis/ProfileInfoLoader.h"
19 #include "llvm/Bytecode/Reader.h"
2019 #include "llvm/Bitcode/ReaderWriter.h"
2120 #include "llvm/Support/CommandLine.h"
2221 #include "llvm/Support/ManagedStatic.h"
3130 using namespace llvm;
3231
3332 namespace {
34 cl::opt Bitcode("bitcode");
3533 cl::opt
3634 BytecodeFile(cl::Positional, cl::desc(""),
3735 cl::Required);
119117 // Read in the bytecode file...
120118 std::string ErrorMessage;
121119 Module *M;
122 if (Bitcode) {
123 MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&BytecodeFile[0],
124 BytecodeFile.size());
125 if (Buffer == 0)
126 ErrorMessage = "Error reading file '" + BytecodeFile + "'";
127 else
128 M = ParseBitcodeFile(Buffer, &ErrorMessage);
129 delete Buffer;
130 } else {
131 M = ParseBytecodeFile(BytecodeFile,
132 Compressor::decompressToNewBuffer,
133 &ErrorMessage);
134 }
120 MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&BytecodeFile[0],
121 BytecodeFile.size());
122 if (Buffer == 0)
123 ErrorMessage = "Error reading file '" + BytecodeFile + "'";
124 else
125 M = ParseBitcodeFile(Buffer, &ErrorMessage);
126 delete Buffer;
135127 if (M == 0) {
136128 std::cerr << argv[0] << ": " << BytecodeFile << ": "
137129 << ErrorMessage << "\n";
1111 //===----------------------------------------------------------------------===//
1212
1313 #include "llvm/Module.h"
14 #include "llvm/Bytecode/Archive.h"
14 #include "llvm/Bitcode/Archive.h"
1515 #include "llvm/Support/CommandLine.h"
1616 #include "llvm/Support/ManagedStatic.h"
1717 #include "llvm/System/Signals.h"
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvm2cpp
10 LINK_COMPONENTS = bcreader bitreader
10 LINK_COMPONENTS = bitreader
1111
1212 include $(LEVEL)/Makefile.common
1313
1717
1818 #include "llvm/Module.h"
1919 #include "llvm/Bitcode/ReaderWriter.h"
20 #include "llvm/Bytecode/Reader.h"
2120 #include "llvm/Analysis/Verifier.h"
2221 #include "llvm/Support/CommandLine.h"
2322 #include "llvm/Support/ManagedStatic.h"
2928 #include
3029 #include
3130 using namespace llvm;
32
33 cl::opt Bitcode("bitcode");
3431
3532 static cl::opt
3633 InputFilename(cl::Positional, cl::desc(""),
5350 std::string ErrorMessage;
5451
5552 std::auto_ptr M;
56 if (Bitcode) {
57 std::auto_ptr Buffer(
58 MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size()));
59 if (Buffer.get())
60 M.reset(ParseBitcodeFile(Buffer.get(), &ErrorMessage));
61 else
62 ErrorMessage = "Error reading file '" + InputFilename + "'";
63 } else {
64 M.reset(ParseBytecodeFile(InputFilename,
65 Compressor::decompressToNewBuffer,
66 &ErrorMessage));
67 }
53 std::auto_ptr Buffer(
54 MemoryBuffer::getFileOrSTDIN(&InputFilename[0], InputFilename.size()));
55 if (Buffer.get())
56 M.reset(ParseBitcodeFile(Buffer.get(), &ErrorMessage));
57 else
58 ErrorMessage = "Error reading file '" + InputFilename + "'";
6859 if (M.get() == 0) {
6960 std::cerr << argv[0] << ": ";
7061 if (ErrorMessage.size())
1414 #include "CompilerDriver.h"
1515 #include "ConfigLexer.h"
1616 #include "llvm/Module.h"
17 #include "llvm/ModuleProvider.h"
1718 #include "llvm/Bitcode/ReaderWriter.h"
18 #include "llvm/Bytecode/Reader.h"
1919 #include "llvm/Support/MemoryBuffer.h"
2020 #include "llvm/Support/Timer.h"
2121 #include "llvm/System/Signals.h"
2525 #include
2626 using namespace llvm;
2727
28
29 static bool Bitcode = false;
3028
3129 namespace {
3230
6866
6967 static bool GetBytecodeDependentLibraries(const std::string &fname,
7068 Module::LibraryListType& deplibs,
71 BCDecompressor_t *BCDC,
7269 std::string* ErrMsg) {
7370 ModuleProvider *MP = 0;
74 if (Bitcode) {
75 if (MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&fname[0],
76 fname.size())) {
77 MP = getBitcodeModuleProvider(Buffer);
78 if (MP == 0) delete Buffer;
79 }
80 } else {
81 MP = getBytecodeModuleProvider(fname, BCDC, ErrMsg);
71 if (MemoryBuffer *Buffer = MemoryBuffer::getFileOrSTDIN(&fname[0],
72 fname.size())) {
73 MP = getBitcodeModuleProvider(Buffer);
74 if (MP == 0) delete Buffer;
8275 }
8376 if (!MP) {
8477 deplibs.clear();
597590 if (fullpath.isBytecodeFile()) {
598591 // Process the dependent libraries recursively
599592 Module::LibraryListType modlibs;
600 if (GetBytecodeDependentLibraries(fullpath.toString(),modlibs,
601 Compressor::decompressToNewBuffer,
602 &err)) {
593 if (GetBytecodeDependentLibraries(fullpath.toString(),modlibs, &err)) {
603594 // Traverse the dependent libraries list
604595 Module::lib_iterator LI = modlibs.begin();
605596 Module::lib_iterator LE = modlibs.end();
77 ##===----------------------------------------------------------------------===##
88 LEVEL = ../..
99 TOOLNAME = llvmc
10 LINK_COMPONENTS = support system core bcreader bitreader
10 LINK_COMPONENTS = support system core bitreader
1111 CONFIG_FILES = c cpp ll st
1212 EXTRA_DIST = c cpp ll ConfigLexer.cpp.cvs ConfigLexer.l.cvs
1313 REQUIRES_EH := 1