[llvm] r263474 - The file header of TrailingObjects.h suggests that TrailingObjects be inherited privately because the public APIs it exposes are not meant as part of the interface. There's no functional change because nothing currently relied on these being inherited publicly.

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 14 12:57:48 PDT 2016


Author: aaronballman
Date: Mon Mar 14 14:57:48 2016
New Revision: 263474

URL: http://llvm.org/viewvc/llvm-project?rev=263474&view=rev
Log:
The file header of TrailingObjects.h suggests that TrailingObjects be inherited privately because the public APIs it exposes are not meant as part of the interface. There's no functional change because nothing currently relied on these being inherited publicly.

Modified:
    llvm/trunk/include/llvm/TableGen/Record.h

Modified: llvm/trunk/include/llvm/TableGen/Record.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TableGen/Record.h?rev=263474&r1=263473&r2=263474&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TableGen/Record.h (original)
+++ llvm/trunk/include/llvm/TableGen/Record.h Mon Mar 14 14:57:48 2016
@@ -458,7 +458,7 @@ public:
 /// It contains a vector of bits, whose size is determined by the type.
 ///
 class BitsInit final : public TypedInit, public FoldingSetNode,
-                       public TrailingObjects<BitsInit, Init *> {
+                       private TrailingObjects<BitsInit, Init *> {
   unsigned NumBits;
 
   BitsInit(unsigned N)
@@ -590,7 +590,7 @@ public:
 /// ListInit - [AL, AH, CL] - Represent a list of defs
 ///
 class ListInit final : public TypedInit, public FoldingSetNode,
-                       public TrailingObjects<BitsInit, Init *> {
+                       private TrailingObjects<BitsInit, Init *> {
   unsigned NumValues;
 
 public:




More information about the llvm-commits mailing list