Chromium Code Reviews| Index: src/PNaClTranslator.cpp |
| diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
| index 595b2340eb515b1ed3878e3596ebecc26e2bded0..7aca4949724b2b0396959b33b60754db168947b5 100644 |
| --- a/src/PNaClTranslator.cpp |
| +++ b/src/PNaClTranslator.cpp |
| @@ -476,6 +476,12 @@ private: |
| const char *DeclType, |
| NaClBcIndexSize_t &NameIndex) { |
| if (Decl->hasName()) { |
| + if (Decl->isPNaClABIExternalName()) { |
|
Mark Seaborn
2016/03/09 03:37:15
As I commented on https://codereview.chromium.org/
Sean Klein
2016/03/10 23:45:23
Changed so that setLinkage is only considered for
|
| + // Force linkage to be external for the PNaCl ABI. PNaCl bitcode has a |
| + // linkage field for Functions, but not for GlobalVariables (because the |
| + // latter is not needed for pexes, so it has been removed). |
| + Decl->setLinkage(llvm::GlobalValue::ExternalLinkage); |
|
Karl
2016/03/09 17:06:50
This code is somewhat fragile. The name was earli
Sean Klein
2016/03/10 23:45:23
Code moved to "ModuleValueSymtabParser::setValueNa
|
| + } |
| Translator.checkIfUnnamedNameSafe(Decl->getName(), DeclType, Prefix); |
| } else { |
| Decl->setName(Translator.createUnnamedName(Prefix, NameIndex)); |