[llvm] r371211 - [Object] remove struct constructor, NFC

Cyndy Ishida via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 08:02:22 PDT 2019


Author: cishida
Date: Fri Sep  6 08:02:22 2019
New Revision: 371211

URL: http://llvm.org/viewvc/llvm-project?rev=371211&view=rev
Log:
[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

Modified:
    llvm/trunk/include/llvm/Object/ObjectFile.h

Modified: llvm/trunk/include/llvm/Object/ObjectFile.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ObjectFile.h?rev=371211&r1=371210&r2=371211&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ObjectFile.h (original)
+++ llvm/trunk/include/llvm/Object/ObjectFile.h Fri Sep  6 08:02:22 2019
@@ -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;




More information about the llvm-commits mailing list