diff options
| author | Marcos Pividori <mpividori@google.com> | 2017-01-22 03:30:14 +0000 |
|---|---|---|
| committer | Marcos Pividori <mpividori@google.com> | 2017-01-22 03:30:14 +0000 |
| commit | 440e6415663797586f832e8bdb954037040e3cfa (patch) | |
| tree | b0c221d7a32ae0a715c8eadf9e9688d8871961bd /compiler-rt/lib/interception | |
| parent | 69d65ac44ba03cf5d8c1d8d1a9b079fc4e67555c (diff) | |
| download | bcm5719-llvm-440e6415663797586f832e8bdb954037040e3cfa.tar.gz bcm5719-llvm-440e6415663797586f832e8bdb954037040e3cfa.zip | |
Revert "[interception] Check for export table's size before referring to its elements."
This reverts commit r292747 because cmake fails for some archs.
llvm-svn: 292751
Diffstat (limited to 'compiler-rt/lib/interception')
| -rw-r--r-- | compiler-rt/lib/interception/interception_win.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler-rt/lib/interception/interception_win.cc b/compiler-rt/lib/interception/interception_win.cc index e4f3d358f40..91abecf6de5 100644 --- a/compiler-rt/lib/interception/interception_win.cc +++ b/compiler-rt/lib/interception/interception_win.cc @@ -878,8 +878,6 @@ uptr InternalGetProcAddress(void *module, const char *func_name) { IMAGE_DATA_DIRECTORY *export_directory = &headers->OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT]; - if (export_directory->Size == 0) - return 0; RVAPtr<IMAGE_EXPORT_DIRECTORY> exports(module, export_directory->VirtualAddress); RVAPtr<DWORD> functions(module, exports->AddressOfFunctions); |

