[lld] r336690 - Make a struct type declaration private. NFC.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 08:57:25 PDT 2018


Author: ruiu
Date: Tue Jul 10 08:57:25 2018
New Revision: 336690

URL: http://llvm.org/viewvc/llvm-project?rev=336690&view=rev
Log:
Make a struct type declaration private. NFC.

Modified:
    lld/trunk/ELF/SyntheticSections.h

Modified: lld/trunk/ELF/SyntheticSections.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.h?rev=336690&r1=336689&r2=336690&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.h (original)
+++ lld/trunk/ELF/SyntheticSections.h Tue Jul 10 08:57:25 2018
@@ -677,13 +677,6 @@ struct GdbIndexChunk {
   std::vector<NameTypeEntry> NamesAndTypes;
 };
 
-// The symbol type for the .gdb_index section.
-struct GdbSymbol {
-  llvm::CachedHashStringRef Name;
-  uint32_t OutputOff;
-  uint32_t CuVectorIdx;
-};
-
 class GdbIndexSection final : public SyntheticSection {
 public:
   GdbIndexSection(std::vector<GdbIndexChunk> &&Chunks);
@@ -692,6 +685,12 @@ public:
   bool empty() const override;
 
 private:
+  struct GdbSymbol {
+    llvm::CachedHashStringRef Name;
+    uint32_t OutputOff;
+    uint32_t CuVectorIdx;
+  };
+
   // A symbol table for this .gdb_index section.
   std::vector<GdbSymbol> Symbols;
 




More information about the llvm-commits mailing list