[llvm-commits] [lld] r153912 - in /lld/trunk: include/lld/Core/AbsoluteAtom.h include/lld/Core/Atom.h include/lld/Core/DefinedAtom.h include/lld/Core/SharedLibraryAtom.h include/lld/Core/UndefinedAtom.h lib/Core/Resolver.cpp lib/Core/SymbolTable.

Chandler Carruth chandlerc at google.com
Tue Apr 3 05:12:03 PDT 2012


On Tue, Apr 3, 2012 at 1:56 AM, Michael J. Spencer <bigcheesegs at gmail.com>wrote:

> --- lld/trunk/lib/Core/Resolver.cpp (original)
> +++ lld/trunk/lib/Core/Resolver.cpp Mon Apr  2 18:56:36 2012
> @@ -15,6 +15,7 @@
>  #include "lld/Core/SymbolTable.h"
>  #include "lld/Core/UndefinedAtom.h"
>
> +#include "llvm/Support/Casting.h"
>  #include "llvm/Support/raw_ostream.h"
>
>  #include <algorithm>
> @@ -33,7 +34,7 @@
>     if ( _liveAtoms.count(atom) )
>       return false;
>    // don't remove if marked never-dead-strip
> -    if ( const DefinedAtom* defAtom = atom->definedAtom() ) {
> +    if (const DefinedAtom* defAtom = llvm::dyn_cast<DefinedAtom>(atom)) {
>

Could we do something similar to what Clang does and provide an LLVM header
that pulls a bunch of these *really* common types into the local
namespace(s) for lld?

It'd be nice to fix this earlier rather than later.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120403/cbd2c78f/attachment.html>


More information about the llvm-commits mailing list