Skip to content

Commit

Permalink
[llvm-objdump] Remove untested diagnostic "missing data dir for TLS t…
Browse files Browse the repository at this point in the history
…able"
  • Loading branch information
MaskRay committed Nov 6, 2021
1 parent f862787 commit 859a6d9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions llvm/tools/llvm-objdump/COFFDump.cpp
Expand Up @@ -278,10 +278,7 @@ static void printTLSDirectory(const COFFObjectFile *Obj) {
return;

const data_directory *DataDir = Obj->getDataDirectory(COFF::TLS_TABLE);
if (!DataDir)
reportError("missing data dir for TLS table", Obj->getFileName());

if (DataDir->RelativeVirtualAddress == 0)
if (!DataDir || DataDir->RelativeVirtualAddress == 0)
return;

uintptr_t IntPtr = 0;
Expand Down

0 comments on commit 859a6d9

Please sign in to comment.