[LLVMdev] API changes (was Antw.: 2.0 Pre-release tarballs online)

Chris Lattner
2007-05-23T06:52:46Z

On Sun, 20 May 2007, Bram Adams wrote:
> Op 19-mei-07, om 00:39 heeft Chris Lattner het volgende geschreven:
>> Anton is right.  You should be able to use -fno-builtins to disable
>> this.
>
> Thanks, that did the trick.
>
> Some final remarks (my app works again :-)):
>  * llvm.va_start and similar intrinsics now have an i8* arg instead
> of an sbyte**

ok

>  * For some reason the Arguments of a Function are now circularly
> linked, i.e. getPrev()/Next() does not yield 0 when the first
> Argument is reached, but jumps back to the last one. I experienced
> this with a loop I was using to find out the index of an Argument. It
> relied on the fact that getPrev() would eventually give 0, which
> worked in previous LLVM versions.

Ah, these should be private.  Thanks for pointing this out, I'll fix ;-).
You should use iterators.

> On a related note: while using llvmc I have some test cases where the
> following error now pops up on Linux X86 (not on OSX):
>
> <premain>: CommandLine Error: Argument 'debug' defined more
than once!
> llvmc: CommandLine Error: Argument 'debug' defined more than once!

No idea. :)

llvmc is a work in progress which has stagnated somewhat.  I strongly
recommend using llvm-gcc directly.

-Chris

--