[LLVMdev] sys::Program::ExecuteAndWait() caller problems

Jeff Cohen jeffc at jolt-lang.org
Sun Apr 10 20:43:35 PDT 2005


It's correct; the win32 version also expects the first arg to be the 
name of the program.

Markus F.X.J. Oberhumer wrote:

> Chris Lattner wrote:
>
>> On Sun, 10 Apr 2005, Markus F.X.J. Oberhumer wrote:
>>
>>> sys::Program::ExecuteAndWait() requires that the first element in 
>>> "args" should be the name of the program, but (at least) llvm-ld.cpp 
>>> and gccld.cpp fail to do so, thereby effectively swallowing the 
>>> first parameter.
>>> This is the reason that -native-cbe has not working for some time - 
>>> actually I wonder why no other problems have been caused by this...
>>
>>
>>
>> Ok, yeah this did cause some problems with the ToolRunner.cpp file 
>> which I fixed quite a while ago.  The problem was introduced due to 
>> some refactoring reid did with the program api's.  Thanks for 
>> pointing this out!
>>
>>> Please revisit all callers of ExecuteAndWait().
>>
>>
>>
>> The only one I'm not sure of is the llvmc usage of it in 
>> CompilerDriver.cpp.  Reid, when you get a chance, can you verify that 
>> it is ok?
>
>
> It looks like lib/System/Win32/Program.inc also has to be updated.
>
> Markus
>
>>
>> -Chris
>>
>
>




More information about the llvm-dev mailing list