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.

llvm-svn: 263474
This commit is contained in:
Aaron Ballman 2016-03-14 19:57:48 +00:00
parent 27a3f01deb
commit 1a57daf314
1 changed files with 2 additions and 2 deletions

View File

@ -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: