[llvm-commits] [llvm] r160751 - in /llvm/trunk: include/llvm/Analysis/MemoryBuiltins.h lib/Analysis/MemoryBuiltins.cpp lib/Transforms/Instrumentation/BoundsChecking.cpp test/Instrumentation/BoundsChecking/strings.ll

Nuno Lopes nunoplopes at sapo.pt
Wed Jul 25 14:34:10 PDT 2012


Quoting Benjamin Kramer <benny.kra at gmail.com>:

> On 25.07.2012, at 22:24, Nuno Lopes <nunoplopes at sapo.pt> wrote:
>
>> Quoting Duncan Sands <baldrick at free.fr>:
>>
>>> Hi Nuno,
>>>
>>>> original commit msg:
>>>> MemoryBuiltins: add support to determine the size of strdup'ed
>>>> non-constant strings
>>>
>>> the dragonegg bots don't use cmake but they broke too:
>>>
>>> MemoryBuiltins.cpp:(.text+0x40dc): undefined reference to
>>> `llvm::EmitStrNLen(llvm::Value*, llvm::Value*, llvm::IRBuilder<true,
>>> llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >&,
>>> llvm::TargetData
>>> const*, llvm::TargetLibraryInfo const*)'
>>> MemoryBuiltins.cpp:(.text+0x4207): undefined reference to
>>> `llvm::EmitStrLen(llvm::Value*, llvm::IRBuilder<true, llvm::ConstantFolder,
>>> llvm::IRBuilderDefaultInserter<true> >&, llvm::TargetData const*,
>>> llvm::TargetLibraryInfo const*)'
>>
>> Interesting.. I guess I need to try to build it on another machine.
>
> Isn't using lib/Transforms/Utils from lib/Analysis a layering  
> violation (cyclic dependency)?

Well, I really need to access some functions from  
lib/Transforms/Utils. Is there any dependency of lib/Transforms/Utils  
on lib/Analysis?
I really don't have a clue on how to solve this problem.. :)

Nuno



More information about the llvm-commits mailing list