X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=include%2Fllvm%2FObject%2FELFObjectFile.h;h=a6914d5a60858550863cf0f06beaefc49d97f544;hp=464efe87fe4392642797e7234163026ba3c090a7;hb=0c54b7abc727d38fe9efc99a6d1092ccb6cf1835;hpb=509e9d94712f7586e9dfc7a2f4c1affd7620a744 diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 464efe87fe4..a6914d5a608 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -409,6 +409,9 @@ uint32_t ELFObjectFile::getSymbolFlags(DataRefImpl Symb) const { if (isExportedToOtherDSO(ESym)) Result |= SymbolRef::SF_Exported; + if (ESym->getVisibility() == ELF::STV_HIDDEN) + Result |= SymbolRef::SF_Hidden; + return Result; }