[PATCH] MC: Use StringRef to avoid strcmp/strlen on non-null-term'd strings.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Sun Oct 13 17:26:17 PDT 2013


>> I'm also seeing identical .init/.init_array sizes, but further poking shows
>> that symbols like
>> _GLOBAL__sub_I_ARMMCTargetDesc.cpp
>> are significantly larger.  Presumably this is where the initialization is done,
>> and setting a breakpoint on it confirms its called before main().
>>

Oh, so that is why I was not seeing it, there was already a global
constructor in the file.

In which case, sorry, I agree with Benjamin: We should not add more
global constructors right when we are trying to build llvm without
any.

Cheers,
Rafael



More information about the llvm-commits mailing list