[LLVMdev] API design
Chris Lattner
sabre at nondot.org
Tue Jul 3 00:18:42 PDT 2007
On Tue, 3 Jul 2007, Jed Davis wrote:
>> I've been running LLVM with _GLIBCXX_DEBUG (extra checks) turned on to
>> see what would happen, and it's been a complete disaster.
>>
>> The major problem is the use of this API:
>>
>> new CallInst(V, &Args[0], Args.size());
>
> Forgive me if I'm missing something, but why is it assumed that
> &Args[0] must be a pointer to the entire contents of the vector?
This API works with sequential random access containers like vectors,
arrays, smallvector, etc. It is not designed to work with arbitrary STL
data structures, nor have we ever needed something like that.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list