[LLVMbugs] [PATCH] fix llvm::Interval name clash
Vladimir Prus
ghost at cs.msu.su
Mon Jun 21 06:12:27 PDT 2004
It turns out that there are two classes named llvm::Interval. The first is in
llvm/Analysis/Interval.h and the second is in lib/CodeGen/LiveIntervals.h.
I'm not sure why it works with make-based build system, but I've just build
llc with Boost.Build, and this name clash result in run-time failure -- since
for shared libraries the linker will pick one of the symbols in case of name
clash, and this time it's the wrong symbol.
That attached patch renamed the latter Interval to LiveInterval. The other
possibility was to use anonymous namespace, but I prefered to make the
simplest possible change.
- Volodya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interval.diff
Type: text/x-diff
Size: 15428 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20040621/9140e657/attachment.diff>
More information about the llvm-bugs
mailing list