search for: asmfile

Displaying 4 results from an estimated 4 matches for "asmfile".

2009 Jul 29
2
[LLVMdev] Question on llc output stream
In llc's GetOutputStream we have this: raw_fd_ostream *FDOut = new raw_fd_ostream(OutputFilename.c_str(), /*Binary=*/true, Force, error); Why is Binary set true here? We don't know yet whether this is going to be an AsmFile or a MachOFile. Setting Binary=true causes the stream to be unbuffered. Is this what we want? -Dave
2009 Jul 29
0
[LLVMdev] Question on llc output stream
...tputStream we have this: > > raw_fd_ostream *FDOut = new raw_fd_ostream(OutputFilename.c_str(), > /*Binary=*/true, > Force, error); > > Why is Binary set true here? We don't know yet whether this is > going to be an > AsmFile or a MachOFile. Looks like a bug. It looks like there are two copies of that code, one for the case where there's an explicit OutputFilename, and one where there isn't one, right below it. Only the second one sets the Binary flag properly. > > Setting Binary=true causes the stre...
2007 Nov 08
3
[LLVMdev] Newbie JITter
...)) { default: assert(0 && "Invalid file model!"); return 1; case FileModel::MachOFile: case FileModel::ElfFile: case FileModel::Error: std::cerr << "target does not support generation of this file type!\n"; return 1; case FileModel::AsmFile: break; } MachineCodeEmitter *MCE = 0; if (target->addPassesToEmitFileFinish(Passes, MCE, false)) { std::cerr << "target does not support generation of this file type! \n"; return 1; } std::cout << "\nWhich has this machine code form:";...
2007 Nov 09
0
[LLVMdev] Newbie JITter
...p; "Invalid file model!"); > return 1; > case FileModel::MachOFile: > case FileModel::ElfFile: > case FileModel::Error: > std::cerr << "target does not support generation of this file > type!\n"; > return 1; > case FileModel::AsmFile: > break; > } > > MachineCodeEmitter *MCE = 0; > if (target->addPassesToEmitFileFinish(Passes, MCE, false)) { > std::cerr << "target does not support generation of this file type! > \n"; > return 1; > } > > std::cout <...