[cfe-commits] r81778 - /cfe/trunk/lib/CodeGen/CGObjCGNU.cpp

Daniel Dunbar daniel at zuster.org
Mon Sep 14 13:08:24 PDT 2009


Hi David,

Should this be necessary, or is there a bug in the backend not
mangling a symbol correctly?

 - Daniel

On Mon, Sep 14, 2009 at 12:04 PM, David Chisnall <csdavec at swan.ac.uk> wrote:
> Author: theraven
> Date: Mon Sep 14 14:04:10 2009
> New Revision: 81778
>
> URL: http://llvm.org/viewvc/llvm-project?rev=81778&view=rev
> Log:
> Small fix to stop CGObjCGNU emitting symbols that break some versions of gas.
>
>
> Modified:
>    cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
>
> Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=81778&r1=81777&r2=81778&view=diff
>
> ==============================================================================
> --- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
> +++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Mon Sep 14 14:04:10 2009
> @@ -1394,7 +1394,7 @@
>      iter = TypedSelectors.begin(), iterEnd = TypedSelectors.end();
>      iter != iterEnd ; ++iter) {
>     Elements.push_back(ExportUniqueString(iter->first.first, ".objc_sel_name"));
> -    Elements.push_back(ExportUniqueString(iter->first.second,
> +    Elements.push_back(MakeConstantString(iter->first.second,
>                                           ".objc_sel_types"));
>     Selectors.push_back(llvm::ConstantStruct::get(SelStructTy, Elements));
>     Elements.clear();
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>




More information about the cfe-commits mailing list