From 77d51f2ce9c82b94ffc11c7dabda563c29bc51a2 Mon Sep 17 00:00:00 2001 From: Cyndy Ishida Date: Fri, 6 Sep 2019 15:02:22 +0000 Subject: [PATCH] [Object] remove struct constructor, NFC Summary: make POD struct by removing ctors Reviewers: avl, dblaikie Reviewed By: dblaikie Subscribers: ributzka, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67251 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371211 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ObjectFile.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/llvm/Object/ObjectFile.h b/include/llvm/Object/ObjectFile.h index a4b4f27c28d..63c556b7f0d 100644 --- a/include/llvm/Object/ObjectFile.h +++ b/include/llvm/Object/ObjectFile.h @@ -137,11 +137,6 @@ public: }; struct SectionedAddress { - // TODO: constructors could be removed when C++14 would be adopted. - SectionedAddress() {} - SectionedAddress(uint64_t Addr, uint64_t SectIdx) - : Address(Addr), SectionIndex(SectIdx) {} - const static uint64_t UndefSection = UINT64_MAX; uint64_t Address = 0; -- 2.50.1