From a94d5cd611a4cdbea6d0a0ff15bd29861ea99f6b Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 27 Nov 2017 21:37:51 +0000 Subject: [PATCH] Revert r319090, "COFF: Do not create SectionChunks for discarded comdat sections." Caused test failures in check-cfi on Windows. http://lab.llvm.org:8011/builders/sanitizer-windows/builds/20284 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319100 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/COFF.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/include/llvm/Object/COFF.h b/include/llvm/Object/COFF.h index 2fb896eed97..3ad60b05b6f 100644 --- a/include/llvm/Object/COFF.h +++ b/include/llvm/Object/COFF.h @@ -275,8 +275,6 @@ struct coff_symbol_generic { support::ulittle32_t Value; }; -struct coff_aux_section_definition; - class COFFSymbolRef { public: COFFSymbolRef() = default; @@ -348,18 +346,6 @@ public: return (getType() & 0xF0) >> COFF::SCT_COMPLEX_TYPE_SHIFT; } - template const T *getAux() const { - return CS16 ? reinterpret_cast(CS16 + 1) - : reinterpret_cast(CS32 + 1); - } - - const coff_aux_section_definition *getSectionDefinition() const { - if (!getNumberOfAuxSymbols() || - getStorageClass() != COFF::IMAGE_SYM_CLASS_STATIC) - return nullptr; - return getAux(); - } - bool isAbsolute() const { return getSectionNumber() == -1; } -- 2.50.1