From 59702494390fc75c43e33018924495df9682ab93 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 30 Oct 2021 08:43:43 -0700 Subject: [PATCH] [Hexagon] Remove chksetELFHeaderEFlags (NFC) The function was introduced without any use on Nov 9, 2015 in commit 7cd0892729801c45b170918159bc249bd9ee2b6b. --- llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp b/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp index 3a0ded767ec1..d131cf896834 100644 --- a/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp +++ b/llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp @@ -141,12 +141,6 @@ class HexagonAsmParser : public MCTargetAsmParser { int processInstruction(MCInst &Inst, OperandVector const &Operands, SMLoc IDLoc); - // Check if we have an assembler and, if so, set the ELF e_header flags. - void chksetELFHeaderEFlags(unsigned flags) { - if (getAssembler()) - getAssembler()->setELFHeaderEFlags(flags); - } - unsigned matchRegister(StringRef Name); /// @name Auto-generated Match Functions