Rename GdbIndex.{cpp,h} -> DWARF.{cpp,h}.
authorRui Ueyama <ruiu@google.com>
Fri, 14 Sep 2018 23:51:05 +0000 (23:51 +0000)
committerRui Ueyama <ruiu@google.com>
Fri, 14 Sep 2018 23:51:05 +0000 (23:51 +0000)
These files used to contain classes and functions for .gdb_index,
but they are moved to SyntheticSections.{cpp,h}, so the name is now
irrelevant.

llvm-svn: 342299

lld/ELF/CMakeLists.txt
lld/ELF/DWARF.cpp [moved from lld/ELF/GdbIndex.cpp with 97% similarity]
lld/ELF/DWARF.h [moved from lld/ELF/GdbIndex.h with 94% similarity]
lld/ELF/SyntheticSections.h

index 5d080a7..51fc1e5 100644 (file)
@@ -22,11 +22,11 @@ add_lld_library(lldELF
   Arch/X86.cpp
   Arch/X86_64.cpp
   CallGraphSort.cpp
+  DWARF.cpp
   Driver.cpp
   DriverUtils.cpp
   EhFrame.cpp
   Filesystem.cpp
-  GdbIndex.cpp
   ICF.cpp
   InputFiles.cpp
   InputSection.cpp
similarity index 97%
rename from lld/ELF/GdbIndex.cpp
rename to lld/ELF/DWARF.cpp
index 85449a2..2b62236 100644 (file)
@@ -1,4 +1,4 @@
-//===- GdbIndex.cpp -------------------------------------------------------===//
+//===- DWARF.cpp ----------------------------------------------------------===//
 //
 //                             The LLVM Linker
 //
@@ -14,7 +14,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "GdbIndex.h"
+#include "DWARF.h"
 #include "Symbols.h"
 #include "lld/Common/Memory.h"
 #include "llvm/DebugInfo/DWARF/DWARFDebugPubTable.h"
similarity index 94%
rename from lld/ELF/GdbIndex.h
rename to lld/ELF/DWARF.h
index eba1ba2..adbbcfc 100644 (file)
@@ -1,4 +1,4 @@
-//===- GdbIndex.h --------------------------------------------*- C++ -*-===//
+//===- DWARF.h -----------------------------------------------*- C++ -*-===//
 //
 //                             The LLVM Linker
 //
@@ -7,8 +7,8 @@
 //
 //===-------------------------------------------------------------------===//
 
-#ifndef LLD_ELF_GDB_INDEX_H
-#define LLD_ELF_GDB_INDEX_H
+#ifndef LLD_ELF_DWARF_H
+#define LLD_ELF_DWARF_H
 
 #include "InputFiles.h"
 #include "llvm/DebugInfo/DWARF/DWARFContext.h"
index f51e85c..30d158a 100644 (file)
@@ -21,8 +21,8 @@
 #ifndef LLD_ELF_SYNTHETIC_SECTION_H
 #define LLD_ELF_SYNTHETIC_SECTION_H
 
+#include "DWARF.h"
 #include "EhFrame.h"
-#include "GdbIndex.h"
 #include "InputSection.h"
 #include "llvm/ADT/MapVector.h"
 #include "llvm/MC/StringTableBuilder.h"