diff options
Diffstat (limited to 'llvm/lib/Object/COFFObjectFile.cpp')
| -rw-r--r-- | llvm/lib/Object/COFFObjectFile.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Object/COFFObjectFile.cpp b/llvm/lib/Object/COFFObjectFile.cpp index 7a0892dd98d..eea84c78762 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<uint8_t> AuxData = getSymbolAuxData(Symb); - if (!AuxData.empty()) { - const auto *CAFD = - reinterpret_cast<const coff_aux_function_definition *>( - 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. |

