diff --git a/llvm/tools/objwriter/objwriter.cpp b/llvm/tools/objwriter/objwriter.cpp index 6e3346150b567..91d252140ce6f 100644 --- a/llvm/tools/objwriter/objwriter.cpp +++ b/llvm/tools/objwriter/objwriter.cpp @@ -140,8 +140,6 @@ bool ObjectWriter::Init(llvm::StringRef ObjectFilePath, const char* tripleName) FrameOpened = false; FuncId = 1; - SetCodeSectionAttribute("text", CustomSectionAttributes_Executable, nullptr); - if (ObjFileInfo->getObjectFileType() == ObjFileInfo->IsCOFF) { TypeBuilder.reset(new UserDefinedCodeViewTypesBuilder()); } else {