diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index 7a0892dd98d4..eea84c78762b 100644 --- a/llvm/lib/Object/COFFObjectFile.cpp +++ b/llvm/lib/Object/COFFObjectFile.cpp @@ -240,16 +240,6 @@ std::error_code COFFObjectFile::getSymbolSize(DataRefImpl Ref, Result = Symb.getValue(); return object_error::success; } - if (Symb.isFunctionDefinition()) { - ArrayRef AuxData = getSymbolAuxData(Symb); - if (!AuxData.empty()) { - const auto *CAFD = - reinterpret_cast( - AuxData.data()); - Result = CAFD->TotalSize; - return object_error::success; - } - } // Let's attempt to get the size of the symbol by looking at the address of // the symbol after the symbol in question.