Lines Matching refs:gcc
157 // Print out the error messages generated by GCC if possible...
444 GCC::FileType LLC::OutputCode(const std::string &Bitcode,
483 return UseIntegratedAssembler ? GCC::ObjectFile : GCC::AsmFile;
504 GCC::FileType FileKind = OutputCode(Bitcode, OutputAsmFile, *Error, Timeout,
511 // Assuming LLC worked, compile the result with GCC and run it.
512 return gcc->ExecuteProgram(OutputAsmFile.str(), Args, FileKind,
533 GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs);
534 if (!gcc) {
538 return new LLC(LLCPath, gcc, Args, UseIntegratedAssembler);
624 GCC::FileType CBE::OutputCode(const std::string &Bitcode,
656 return GCC::CFile;
683 return gcc->ExecuteProgram(OutputCFile.str(), Args, GCC::CFile,
704 GCC *gcc = GCC::create(Message, GCCBinary, GCCArgs);
705 if (!gcc) {
709 return new CBE(LLCPath, gcc, Args);
713 // GCC abstraction
729 int GCC::ExecuteProgram(const std::string &ProgramFile,
760 // it from gcc flags
771 sys::Path OutputBinary (ProgramFile+".gcc.exe");
779 // Add any arguments intended for GCC. We locate them here because this is
795 outs() << "<gcc>"; outs().flush();
877 int GCC::MakeSharedObject(const std::string &InputFile, FileType fileType,
915 // bugpoint to just pass that in the environment of GCC.
936 // Add any arguments intended for GCC. We locate them here because this is
946 outs() << "<gcc>"; outs().flush();
960 /// create - Try to find the `gcc' executable
962 GCC *GCC::create(std::string &Message,
975 Message = "Found gcc: " + GCCPath.str() + "\n";
976 return new GCC(GCCPath, RemoteClientPath, Args);