Merge "Use clang-r416183b for clang-tools build"
This commit is contained in:
@@ -15,5 +15,5 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
export LLVM_BUILD_HOST_TOOLS=true
|
export LLVM_BUILD_HOST_TOOLS=true
|
||||||
export LLVM_PREBUILTS_VERSION=clang-r412851
|
export LLVM_PREBUILTS_VERSION=clang-r416183b
|
||||||
export LLVM_RELEASE_VERSION=12.0.3
|
export LLVM_RELEASE_VERSION=12.0.5
|
||||||
|
|||||||
@@ -56,8 +56,6 @@ template <typename T>
|
|||||||
class ELFSoFileParser : public SoFileParser {
|
class ELFSoFileParser : public SoFileParser {
|
||||||
private:
|
private:
|
||||||
LLVM_ELF_IMPORT_TYPES_ELFT(T)
|
LLVM_ELF_IMPORT_TYPES_ELFT(T)
|
||||||
typedef llvm::object::ELFFile<T> ELFO;
|
|
||||||
typedef typename ELFO::Elf_Sym Elf_Sym;
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj);
|
ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj);
|
||||||
@@ -91,8 +89,9 @@ ELFSoFileParser<T>::ELFSoFileParser(const llvm::object::ELFObjectFile<T> *obj) {
|
|||||||
exported_symbols_.reset(new ExportedSymbolSet());
|
exported_symbols_.reset(new ExportedSymbolSet());
|
||||||
|
|
||||||
for (auto symbol_it : obj->getDynamicSymbolIterators()) {
|
for (auto symbol_it : obj->getDynamicSymbolIterators()) {
|
||||||
const Elf_Sym *elf_sym = obj->getSymbol(symbol_it.getRawDataRefImpl());
|
auto elf_sym_or_error = obj->getSymbol(symbol_it.getRawDataRefImpl());
|
||||||
assert (elf_sym != nullptr);
|
assert (elf_sym_or_error);
|
||||||
|
const Elf_Sym *elf_sym = elf_sym_or_error.get();
|
||||||
if (!IsSymbolExported(elf_sym) || elf_sym->isUndefined()) {
|
if (!IsSymbolExported(elf_sym) || elf_sym->isUndefined()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user