OSDN Git Service

Move DebugInfo to DebugInfo/DWARF.
authorZachary Turner <zturner@google.com>
Fri, 30 Jan 2015 18:07:45 +0000 (18:07 +0000)
committerZachary Turner <zturner@google.com>
Fri, 30 Jan 2015 18:07:45 +0000 (18:07 +0000)
In preparation for adding PDB support to LLVM, this moves the
DWARF parsing code to its own subdirectory under DebugInfo, and
renames LLVMDebugInfo to LLVMDebugInfoDWARF.

This is purely a mechanical / build system change.

Differential Revision: http://reviews.llvm.org/D7269
Reviewed by: Eric Christopher

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227586 91177308-0d34-0410-b5e6-96231b3b80d8

70 files changed:
include/llvm/DebugInfo/DWARF/DIContext.h [moved from include/llvm/DebugInfo/DIContext.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h [moved from include/llvm/DebugInfo/DWARFAbbreviationDeclaration.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h [moved from include/llvm/DebugInfo/DWARFAcceleratorTable.h with 92% similarity]
include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h [moved from include/llvm/DebugInfo/DWARFCompileUnit.h with 95% similarity]
include/llvm/DebugInfo/DWARF/DWARFContext.h [moved from include/llvm/DebugInfo/DWARFContext.h with 96% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h [moved from include/llvm/DebugInfo/DWARFDebugAbbrev.h with 96% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h [moved from include/llvm/DebugInfo/DWARFDebugArangeSet.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugAranges.h [moved from include/llvm/DebugInfo/DWARFDebugAranges.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugFrame.h [moved from include/llvm/DebugInfo/DWARFDebugFrame.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h [moved from include/llvm/DebugInfo/DWARFDebugInfoEntry.h with 97% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugLine.h [moved from include/llvm/DebugInfo/DWARFDebugLine.h with 98% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h [moved from include/llvm/DebugInfo/DWARFDebugLoc.h with 97% similarity]
include/llvm/DebugInfo/DWARF/DWARFDebugRangeList.h [moved from include/llvm/DebugInfo/DWARFDebugRangeList.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFFormValue.h [moved from include/llvm/DebugInfo/DWARFFormValue.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFRelocMap.h [moved from include/llvm/DebugInfo/DWARFRelocMap.h with 100% similarity]
include/llvm/DebugInfo/DWARF/DWARFSection.h [moved from include/llvm/DebugInfo/DWARFSection.h with 91% similarity]
include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h [moved from include/llvm/DebugInfo/DWARFTypeUnit.h with 96% similarity]
include/llvm/DebugInfo/DWARF/DWARFUnit.h [moved from include/llvm/DebugInfo/DWARFUnit.h with 97% similarity]
lib/DebugInfo/CMakeLists.txt
lib/DebugInfo/DWARF/CMakeLists.txt [new file with mode: 0644]
lib/DebugInfo/DWARF/DIContext.cpp [moved from lib/DebugInfo/DIContext.cpp with 84% similarity]
lib/DebugInfo/DWARF/DWARFAbbreviationDeclaration.cpp [moved from lib/DebugInfo/DWARFAbbreviationDeclaration.cpp with 97% similarity]
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp [moved from lib/DebugInfo/DWARFAcceleratorTable.cpp with 98% similarity]
lib/DebugInfo/DWARF/DWARFCompileUnit.cpp [moved from lib/DebugInfo/DWARFCompileUnit.cpp with 95% similarity]
lib/DebugInfo/DWARF/DWARFContext.cpp [moved from lib/DebugInfo/DWARFContext.cpp with 99% similarity]
lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp [moved from lib/DebugInfo/DWARFDebugAbbrev.cpp with 98% similarity]
lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp [moved from lib/DebugInfo/DWARFDebugArangeSet.cpp with 98% similarity]
lib/DebugInfo/DWARF/DWARFDebugAranges.cpp [moved from lib/DebugInfo/DWARFDebugAranges.cpp with 95% similarity]
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp [moved from lib/DebugInfo/DWARFDebugFrame.cpp with 99% similarity]
lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp [moved from lib/DebugInfo/DWARFDebugInfoEntry.cpp with 98% similarity]
lib/DebugInfo/DWARF/DWARFDebugLine.cpp [moved from lib/DebugInfo/DWARFDebugLine.cpp with 99% similarity]
lib/DebugInfo/DWARF/DWARFDebugLoc.cpp [moved from lib/DebugInfo/DWARFDebugLoc.cpp with 98% similarity]
lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp [moved from lib/DebugInfo/DWARFDebugRangeList.cpp with 97% similarity]
lib/DebugInfo/DWARF/DWARFFormValue.cpp [moved from lib/DebugInfo/DWARFFormValue.cpp with 99% similarity]
lib/DebugInfo/DWARF/DWARFTypeUnit.cpp [moved from lib/DebugInfo/DWARFTypeUnit.cpp with 96% similarity]
lib/DebugInfo/DWARF/DWARFUnit.cpp [moved from lib/DebugInfo/DWARFUnit.cpp with 98% similarity]
lib/DebugInfo/DWARF/LLVMBuild.txt [new file with mode: 0644]
lib/DebugInfo/DWARF/Makefile [new file with mode: 0644]
lib/DebugInfo/DWARF/SyntaxHighlighting.cpp [moved from lib/DebugInfo/SyntaxHighlighting.cpp with 100% similarity]
lib/DebugInfo/DWARF/SyntaxHighlighting.h [moved from lib/DebugInfo/SyntaxHighlighting.h with 100% similarity]
lib/DebugInfo/DWARF/module.modulemap [new file with mode: 0644]
lib/DebugInfo/LLVMBuild.txt
lib/DebugInfo/Makefile
lib/DebugInfo/module.modulemap [deleted file]
lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
lib/ExecutionEngine/IntelJITEvents/LLVMBuild.txt
lib/Makefile
tools/dsymutil/CMakeLists.txt
tools/dsymutil/DwarfLinker.cpp
tools/dsymutil/LLVMBuild.txt
tools/dsymutil/Makefile
tools/lli/CMakeLists.txt
tools/llvm-dwarfdump/CMakeLists.txt
tools/llvm-dwarfdump/LLVMBuild.txt
tools/llvm-dwarfdump/Makefile
tools/llvm-dwarfdump/llvm-dwarfdump.cpp
tools/llvm-go/llvm-go.go
tools/llvm-objdump/CMakeLists.txt
tools/llvm-objdump/LLVMBuild.txt
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/Makefile
tools/llvm-rtdyld/CMakeLists.txt
tools/llvm-rtdyld/Makefile
tools/llvm-rtdyld/llvm-rtdyld.cpp
tools/llvm-symbolizer/CMakeLists.txt
tools/llvm-symbolizer/LLVMSymbolize.h
tools/llvm-symbolizer/Makefile
unittests/DebugInfo/CMakeLists.txt
unittests/DebugInfo/DWARFFormValueTest.cpp
unittests/DebugInfo/Makefile

@@ -8,8 +8,8 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/DebugInfo/DWARFFormValue.h"
-#include "llvm/DebugInfo/DWARFRelocMap.h"
+#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
+#include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
 #include <cstdint>
 
 namespace llvm {
similarity index 95%
rename from include/llvm/DebugInfo/DWARFCompileUnit.h
rename to include/llvm/DebugInfo/DWARF/DWARFCompileUnit.h
index dbf777c..743f9c6 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H
 #define LLVM_LIB_DEBUGINFO_DWARFCOMPILEUNIT_H
 
-#include "llvm/DebugInfo/DWARFUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
 
 namespace llvm {
 
similarity index 96%
rename from include/llvm/DebugInfo/DWARFContext.h
rename to include/llvm/DebugInfo/DWARF/DWARFContext.h
index 82b5bb0..6e0cb1f 100644 (file)
 
 #include "llvm/ADT/MapVector.h"
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/DebugInfo/DIContext.h"
-#include "llvm/DebugInfo/DWARFCompileUnit.h"
-#include "llvm/DebugInfo/DWARFDebugAranges.h"
-#include "llvm/DebugInfo/DWARFDebugFrame.h"
-#include "llvm/DebugInfo/DWARFDebugLine.h"
-#include "llvm/DebugInfo/DWARFDebugLoc.h"
-#include "llvm/DebugInfo/DWARFDebugRangeList.h"
-#include "llvm/DebugInfo/DWARFSection.h"
-#include "llvm/DebugInfo/DWARFTypeUnit.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugAranges.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugLine.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
+#include "llvm/DebugInfo/DWARF/DWARFSection.h"
+#include "llvm/DebugInfo/DWARF/DWARFTypeUnit.h"
 #include <vector>
 
 namespace llvm {
similarity index 96%
rename from include/llvm/DebugInfo/DWARFDebugAbbrev.h
rename to include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h
index 6752df9..2114208 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGABBREV_H
 #define LLVM_LIB_DEBUGINFO_DWARFDEBUGABBREV_H
 
-#include "llvm/DebugInfo/DWARFAbbreviationDeclaration.h"
+#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
 #include <list>
 #include <map>
 #include <vector>
@@ -11,9 +11,9 @@
 #define LLVM_LIB_DEBUGINFO_DWARFDEBUGINFOENTRY_H
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/DebugInfo/DIContext.h"
-#include "llvm/DebugInfo/DWARFAbbreviationDeclaration.h"
-#include "llvm/DebugInfo/DWARFDebugRangeList.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
 #include "llvm/Support/DataTypes.h"
 
 namespace llvm {
similarity index 98%
rename from include/llvm/DebugInfo/DWARFDebugLine.h
rename to include/llvm/DebugInfo/DWARF/DWARFDebugLine.h
index c5ee76e..0c564c4 100644 (file)
@@ -10,8 +10,8 @@
 #ifndef LLVM_LIB_DEBUGINFO_DWARFDEBUGLINE_H
 #define LLVM_LIB_DEBUGINFO_DWARFDEBUGLINE_H
 
-#include "llvm/DebugInfo/DIContext.h"
-#include "llvm/DebugInfo/DWARFRelocMap.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
 #include "llvm/Support/DataExtractor.h"
 #include <map>
 #include <string>
similarity index 97%
rename from include/llvm/DebugInfo/DWARFDebugLoc.h
rename to include/llvm/DebugInfo/DWARF/DWARFDebugLoc.h
index a6135a0..bd44c2e 100644 (file)
@@ -11,7 +11,7 @@
 #define LLVM_LIB_DEBUGINFO_DWARFDEBUGLOC_H
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/DebugInfo/DWARFRelocMap.h"
+#include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
 #include "llvm/Support/DataExtractor.h"
 
 namespace llvm {
similarity index 91%
rename from include/llvm/DebugInfo/DWARFSection.h
rename to include/llvm/DebugInfo/DWARF/DWARFSection.h
index 5f09d9e..f52004c 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef LLVM_LIB_DEBUGINFO_DWARFSECTION_H
 #define LLVM_LIB_DEBUGINFO_DWARFSECTION_H
 
-#include "llvm/DebugInfo/DWARFRelocMap.h"
+#include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
 
 namespace llvm {
 
similarity index 96%
rename from include/llvm/DebugInfo/DWARFTypeUnit.h
rename to include/llvm/DebugInfo/DWARF/DWARFTypeUnit.h
index 213b541..f24e278 100644 (file)
@@ -10,7 +10,7 @@
 #ifndef LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H
 #define LLVM_LIB_DEBUGINFO_DWARFTYPEUNIT_H
 
-#include "llvm/DebugInfo/DWARFUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
 
 namespace llvm {
 
similarity index 97%
rename from include/llvm/DebugInfo/DWARFUnit.h
rename to include/llvm/DebugInfo/DWARF/DWARFUnit.h
index 0413a94..ff6a402 100644 (file)
 #ifndef LLVM_LIB_DEBUGINFO_DWARFUNIT_H
 #define LLVM_LIB_DEBUGINFO_DWARFUNIT_H
 
-#include "llvm/DebugInfo/DWARFDebugAbbrev.h"
-#include "llvm/DebugInfo/DWARFDebugInfoEntry.h"
-#include "llvm/DebugInfo/DWARFDebugRangeList.h"
-#include "llvm/DebugInfo/DWARFRelocMap.h"
-#include "llvm/DebugInfo/DWARFSection.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
+#include "llvm/DebugInfo/DWARF/DWARFRelocMap.h"
+#include "llvm/DebugInfo/DWARF/DWARFSection.h"
 #include <vector>
 
 namespace llvm {
index 4cce35b..ce8c0f8 100644 (file)
@@ -1,19 +1,2 @@
-add_llvm_library(LLVMDebugInfo
-  DIContext.cpp
-  DWARFAbbreviationDeclaration.cpp
-  DWARFAcceleratorTable.cpp
-  DWARFCompileUnit.cpp
-  DWARFContext.cpp
-  DWARFDebugAbbrev.cpp
-  DWARFDebugArangeSet.cpp
-  DWARFDebugAranges.cpp
-  DWARFDebugFrame.cpp
-  DWARFDebugInfoEntry.cpp
-  DWARFDebugLine.cpp
-  DWARFDebugLoc.cpp
-  DWARFDebugRangeList.cpp
-  DWARFFormValue.cpp
-  DWARFTypeUnit.cpp
-  DWARFUnit.cpp
-  SyntaxHighlighting.cpp
-  )
+
+add_subdirectory(DWARF)
\ No newline at end of file
diff --git a/lib/DebugInfo/DWARF/CMakeLists.txt b/lib/DebugInfo/DWARF/CMakeLists.txt
new file mode 100644 (file)
index 0000000..2975581
--- /dev/null
@@ -0,0 +1,19 @@
+add_llvm_library(LLVMDebugInfoDWARF
+  DIContext.cpp
+  DWARFAbbreviationDeclaration.cpp
+  DWARFAcceleratorTable.cpp
+  DWARFCompileUnit.cpp
+  DWARFContext.cpp
+  DWARFDebugAbbrev.cpp
+  DWARFDebugArangeSet.cpp
+  DWARFDebugAranges.cpp
+  DWARFDebugFrame.cpp
+  DWARFDebugInfoEntry.cpp
+  DWARFDebugLine.cpp
+  DWARFDebugLoc.cpp
+  DWARFDebugRangeList.cpp
+  DWARFFormValue.cpp
+  DWARFTypeUnit.cpp
+  DWARFUnit.cpp
+  SyntaxHighlighting.cpp
+  )
similarity index 84%
rename from lib/DebugInfo/DIContext.cpp
rename to lib/DebugInfo/DWARF/DIContext.cpp
index 20bc01f..a1c6ca4 100644 (file)
@@ -7,8 +7,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DIContext.h"
-#include "llvm/DebugInfo/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
 using namespace llvm;
 
 DIContext::~DIContext() {}
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFAbbreviationDeclaration.h"
+#include "llvm/DebugInfo/DWARF/DWARFAbbreviationDeclaration.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
similarity index 98%
rename from lib/DebugInfo/DWARFAcceleratorTable.cpp
rename to lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp
index cbdde6a..8ae0543 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFAcceleratorTable.h"
+#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
similarity index 95%
rename from lib/DebugInfo/DWARFCompileUnit.cpp
rename to lib/DebugInfo/DWARF/DWARFCompileUnit.cpp
index 3ec2cf5..01e7247 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFCompileUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 
similarity index 99%
rename from lib/DebugInfo/DWARFContext.cpp
rename to lib/DebugInfo/DWARF/DWARFContext.cpp
index 3844cde..3b42700 100644 (file)
@@ -7,11 +7,11 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/ADT/StringSwitch.h"
-#include "llvm/DebugInfo/DWARFAcceleratorTable.h"
-#include "llvm/DebugInfo/DWARFDebugArangeSet.h"
+#include "llvm/DebugInfo/DWARF/DWARFAcceleratorTable.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h"
 #include "llvm/Support/Compression.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Format.h"
similarity index 98%
rename from lib/DebugInfo/DWARFDebugAbbrev.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugAbbrev.cpp
index 6c9c9eb..e63e289 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugAbbrev.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 using namespace llvm;
similarity index 98%
rename from lib/DebugInfo/DWARFDebugArangeSet.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugArangeSet.cpp
index d4bff90..67589cd 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugArangeSet.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
similarity index 95%
rename from lib/DebugInfo/DWARFDebugAranges.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugAranges.cpp
index b825d83..27a02c4 100644 (file)
@@ -7,10 +7,10 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugAranges.h"
-#include "llvm/DebugInfo/DWARFCompileUnit.h"
-#include "llvm/DebugInfo/DWARFContext.h"
-#include "llvm/DebugInfo/DWARFDebugArangeSet.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugAranges.h"
+#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugArangeSet.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
similarity index 99%
rename from lib/DebugInfo/DWARFDebugFrame.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
index 968a0ce..b7a0dd3 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugFrame.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugFrame.h"
 #include "llvm/ADT/SmallString.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/Dwarf.h"
similarity index 98%
rename from lib/DebugInfo/DWARFDebugInfoEntry.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
index 01ff52f..e963b7c 100644 (file)
@@ -8,11 +8,11 @@
 //===----------------------------------------------------------------------===//
 
 #include "SyntaxHighlighting.h"
-#include "llvm/DebugInfo/DWARFCompileUnit.h"
-#include "llvm/DebugInfo/DWARFContext.h"
-#include "llvm/DebugInfo/DWARFDebugAbbrev.h"
-#include "llvm/DebugInfo/DWARFDebugInfoEntry.h"
-#include "llvm/DebugInfo/DWARFFormValue.h"
+#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h"
+#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
 #include "llvm/Support/DataTypes.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Dwarf.h"
similarity index 99%
rename from lib/DebugInfo/DWARFDebugLine.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugLine.cpp
index 365a522..b63af6a 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugLine.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugLine.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/Path.h"
similarity index 98%
rename from lib/DebugInfo/DWARFDebugLoc.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugLoc.cpp
index bc0133d..fdb6dd2 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugLoc.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugLoc.h"
 #include "llvm/Support/Compiler.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Format.h"
similarity index 97%
rename from lib/DebugInfo/DWARFDebugRangeList.cpp
rename to lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp
index ce60deb..d5df688 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFDebugRangeList.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 
similarity index 99%
rename from lib/DebugInfo/DWARFFormValue.cpp
rename to lib/DebugInfo/DWARF/DWARFFormValue.cpp
index d784bfc..45bd197 100644 (file)
@@ -10,9 +10,9 @@
 #include "SyntaxHighlighting.h"
 #include "llvm/ADT/ArrayRef.h"
 #include "llvm/ADT/StringRef.h"
-#include "llvm/DebugInfo/DWARFCompileUnit.h"
-#include "llvm/DebugInfo/DWARFContext.h"
-#include "llvm/DebugInfo/DWARFFormValue.h"
+#include "llvm/DebugInfo/DWARF/DWARFCompileUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
 #include "llvm/Support/Debug.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Format.h"
similarity index 96%
rename from lib/DebugInfo/DWARFTypeUnit.cpp
rename to lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
index 6e93e28..65c7bff 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFTypeUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFTypeUnit.h"
 #include "llvm/Support/Format.h"
 #include "llvm/Support/raw_ostream.h"
 
similarity index 98%
rename from lib/DebugInfo/DWARFUnit.cpp
rename to lib/DebugInfo/DWARF/DWARFUnit.cpp
index 395a179..d4ecd69 100644 (file)
@@ -7,9 +7,9 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFUnit.h"
-#include "llvm/DebugInfo/DWARFContext.h"
-#include "llvm/DebugInfo/DWARFFormValue.h"
+#include "llvm/DebugInfo/DWARF/DWARFUnit.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
 #include "llvm/Support/Dwarf.h"
 #include "llvm/Support/Path.h"
 #include <cstdio>
diff --git a/lib/DebugInfo/DWARF/LLVMBuild.txt b/lib/DebugInfo/DWARF/LLVMBuild.txt
new file mode 100644 (file)
index 0000000..9f8b104
--- /dev/null
@@ -0,0 +1,22 @@
+;===- ./lib/DebugInfo/DWARF/LLVMBuild.txt ----------------------*- Conf -*--===;
+;
+;                     The LLVM Compiler Infrastructure
+;
+; This file is distributed under the University of Illinois Open Source
+; License. See LICENSE.TXT for details.
+;
+;===------------------------------------------------------------------------===;
+;
+; This is an LLVMBuild description file for the components in this subdirectory.
+;
+; For more information on the LLVMBuild system, please see:
+;
+;   http://llvm.org/docs/LLVMBuild.html
+;
+;===------------------------------------------------------------------------===;
+
+[component_0]
+type = Library
+name = DebugInfoDWARF
+parent = DebugInfo
+required_libraries = Object Support
diff --git a/lib/DebugInfo/DWARF/Makefile b/lib/DebugInfo/DWARF/Makefile
new file mode 100644 (file)
index 0000000..8633373
--- /dev/null
@@ -0,0 +1,14 @@
+##===- lib/DebugInfo/DWARF/Makefile ------------------------*- Makefile -*-===##
+#
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
+LEVEL = ../../..
+LIBRARYNAME = LLVMDebugInfoDWARF
+BUILD_ARCHIVE := 1
+
+include $(LEVEL)/Makefile.common
diff --git a/lib/DebugInfo/DWARF/module.modulemap b/lib/DebugInfo/DWARF/module.modulemap
new file mode 100644 (file)
index 0000000..c2f624f
--- /dev/null
@@ -0,0 +1 @@
+module DebugInfoDWARF { requires cplusplus umbrella "." module * { export * } }
index f347d5e..ab2185a 100644 (file)
 ;
 ;===------------------------------------------------------------------------===;
 
+[common]
+subdirectories = DWARF
+
 [component_0]
-type = Library
+type = Group
 name = DebugInfo
-parent = Libraries
-required_libraries = Object Support
+parent = $ROOT
index 1292b57..9b4cb23 100644 (file)
@@ -6,9 +6,10 @@
 # License. See LICENSE.TXT for details.
 #
 ##===----------------------------------------------------------------------===##
-
 LEVEL = ../..
-LIBRARYNAME = LLVMDebugInfo
-BUILD_ARCHIVE := 1
 
-include $(LEVEL)/Makefile.common
+include $(LEVEL)/Makefile.config
+
+PARALLEL_DIRS := DWARF
+
+include $(LEVEL)/Makefile.common
\ No newline at end of file
diff --git a/lib/DebugInfo/module.modulemap b/lib/DebugInfo/module.modulemap
deleted file mode 100644 (file)
index 1fe5ab1..0000000
+++ /dev/null
@@ -1 +0,0 @@
-module DebugInfo { requires cplusplus umbrella "." module * { export * } }
index ee9096b..aa32452 100644 (file)
@@ -17,7 +17,7 @@
 #include "IntelJITEventsWrapper.h"
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
 #include "llvm/ExecutionEngine/JITEventListener.h"
 #include "llvm/IR/DebugInfo.h"
 #include "llvm/IR/Function.h"
index e36493e..1247cbd 100644 (file)
@@ -21,4 +21,4 @@
 type = OptionalLibrary
 name = IntelJITEvents
 parent = ExecutionEngine
-required_libraries = Core DebugInfo Support
+required_libraries = Core DebugInfoDWARF Support
index 0ddf917..52fdaaf 100644 (file)
@@ -10,8 +10,8 @@ LEVEL = ..
 
 include $(LEVEL)/Makefile.config
 
-PARALLEL_DIRS := IR AsmParser Bitcode Analysis Transforms CodeGen Target \
-                 ExecutionEngine Linker LTO MC Object Option DebugInfo   \
+PARALLEL_DIRS := IR AsmParser Bitcode Analysis Transforms CodeGen Target      \
+                 ExecutionEngine Linker LTO MC Object Option DebugInfo        \
                  IRReader LineEditor ProfileData
 
 include $(LEVEL)/Makefile.common
index c397e3e..5e1f37f 100644 (file)
@@ -1,5 +1,5 @@
 set(LLVM_LINK_COMPONENTS
-  DebugInfo
+  DebugInfoDWARF
   Object
   Support
   )
index 7f6d69c..62459b1 100644 (file)
@@ -11,8 +11,8 @@
 #include "BinaryHolder.h"
 #include "DebugMap.h"
 #include "dsymutil.h"
-#include "llvm/DebugInfo/DWARFContext.h"
-#include "llvm/DebugInfo/DWARFDebugInfoEntry.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
+#include "llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h"
 #include <string>
 
 namespace llvm {
index dd9151e..c995291 100644 (file)
@@ -19,4 +19,4 @@
 type = Tool
 name = llvm-dsymutil
 parent = Tools
-required_libraries = DebugInfo Object Support
+required_libraries = DebugInfoDWARF Object Support
index fd437aa..e8dc569 100644 (file)
@@ -9,7 +9,7 @@
 
 LEVEL := ../..
 TOOLNAME := llvm-dsymutil
-LINK_COMPONENTS := DebugInfo Object Support
+LINK_COMPONENTS := DebugInfoDWARF Object Support
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS := 1
index 9217c38..0c2654b 100644 (file)
@@ -26,7 +26,7 @@ endif( LLVM_USE_OPROFILE )
 if( LLVM_USE_INTEL_JITEVENTS )
   set(LLVM_LINK_COMPONENTS
     ${LLVM_LINK_COMPONENTS}
-    DebugInfo
+    DebugInfoDWARF
     IntelJITEvents
     Object
     )
index 288b323..086b139 100644 (file)
@@ -1,5 +1,5 @@
 set(LLVM_LINK_COMPONENTS
-  DebugInfo
+  DebugInfoDWARF
   Object
   Support
   )
index 28b7c4c..a9dca3e 100644 (file)
@@ -19,4 +19,4 @@
 type = Tool
 name = llvm-dwarfdump
 parent = Tools
-required_libraries = DebugInfo Object
+required_libraries = DebugInfoDWARF Object
index 7ca1a8d..00b18c6 100644 (file)
@@ -9,7 +9,7 @@
 
 LEVEL := ../..
 TOOLNAME := llvm-dwarfdump
-LINK_COMPONENTS := DebugInfo Object
+LINK_COMPONENTS := DebugInfoDWARF Object
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS := 1
index cff8216..a99f57f 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/Triple.h"
-#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Object/RelocVisitor.h"
 #include "llvm/Support/CommandLine.h"
index cf520bd..70d91d8 100644 (file)
@@ -46,7 +46,7 @@ var components = []string{
        "bitwriter",
        "codegen",
        "core",
-       "debuginfo",
+       "debuginfodwarf",
        "executionengine",
        "instrumentation",
        "interpreter",
index 61bf3b3..d717653 100644 (file)
@@ -1,6 +1,6 @@
 set(LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
-  DebugInfo
+  DebugInfoDWARF
   MC
   MCDisassembler
   Object
index d16c501..4232873 100644 (file)
@@ -19,4 +19,4 @@
 type = Tool
 name = llvm-objdump
 parent = Tools
-required_libraries = DebugInfo MC MCDisassembler MCParser Object all-targets
+required_libraries = DebugInfoDWARF MC MCDisassembler MCParser Object all-targets
index e103842..c996fc2 100644 (file)
@@ -17,7 +17,7 @@
 #include "llvm/ADT/StringExtras.h"
 #include "llvm/ADT/Triple.h"
 #include "llvm/Config/config.h"
-#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
 #include "llvm/MC/MCAsmInfo.h"
 #include "llvm/MC/MCContext.h"
 #include "llvm/MC/MCDisassembler.h"
index 4616b78..7c16523 100644 (file)
@@ -9,7 +9,7 @@
 
 LEVEL := ../..
 TOOLNAME := llvm-objdump
-LINK_COMPONENTS := all-targets DebugInfo MC MCParser MCDisassembler Object
+LINK_COMPONENTS := all-targets DebugInfoDWARF MC MCParser MCDisassembler Object
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS := 1
index e294760..c1acbe5 100644 (file)
@@ -1,6 +1,6 @@
 set(LLVM_LINK_COMPONENTS
   ${LLVM_TARGETS_TO_BUILD}
-  DebugInfo
+  DebugInfoDWARF
   ExecutionEngine
   MC
   Object
index 9de753e..3e868b9 100644 (file)
@@ -9,7 +9,7 @@
 
 LEVEL := ../..
 TOOLNAME := llvm-rtdyld
-LINK_COMPONENTS := all-targets support MC object RuntimeDyld MCJIT debuginfo
+LINK_COMPONENTS := all-targets support MC object RuntimeDyld MCJIT DebugInfoDWARF
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS := 1
index 5b6f301..58bf206 100644 (file)
@@ -12,7 +12,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "llvm/ADT/StringMap.h"
-#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
 #include "llvm/ExecutionEngine/RuntimeDyld.h"
 #include "llvm/ExecutionEngine/RuntimeDyldChecker.h"
 #include "llvm/MC/MCAsmInfo.h"
index 9e76248..6968f1c 100644 (file)
@@ -4,7 +4,7 @@
 # targets as well. Currently, there is no support for such a build strategy.
 
 set(LLVM_LINK_COMPONENTS
-  DebugInfo
+  DebugInfoDWARF
   Object
   Support
   )
index ff848fc..c109221 100644 (file)
@@ -14,7 +14,7 @@
 #define LLVM_TOOLS_LLVM_SYMBOLIZER_LLVMSYMBOLIZE_H
 
 #include "llvm/ADT/SmallVector.h"
-#include "llvm/DebugInfo/DIContext.h"
+#include "llvm/DebugInfo/DWARF/DIContext.h"
 #include "llvm/Object/MachOUniversal.h"
 #include "llvm/Object/ObjectFile.h"
 #include "llvm/Support/DataExtractor.h"
index 5ac83a5..c5d2cf7 100644 (file)
@@ -9,7 +9,7 @@
 
 LEVEL := ../..
 TOOLNAME := llvm-symbolizer
-LINK_COMPONENTS := DebugInfo Object
+LINK_COMPONENTS := DebugInfoDWARF Object
 
 # This tool has no plugins, optimize startup time.
 TOOL_NO_EXPORTS := 1
index e844e95..ffc9086 100644 (file)
@@ -1,5 +1,5 @@
 set(LLVM_LINK_COMPONENTS
-  DebugInfo
+  DebugInfoDWARF
   )
 
 set(DebugInfoSources
index 38b932e..4521132 100644 (file)
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/DebugInfo/DWARFFormValue.h"
+#include "llvm/DebugInfo/DWARF/DWARFFormValue.h"
 #include "llvm/Support/Dwarf.h"
 #include "gtest/gtest.h"
 using namespace llvm;
index 999ded9..ad3cb22 100644 (file)
@@ -9,7 +9,7 @@
 
 LEVEL = ../..
 TESTNAME = DebugInfo
-LINK_COMPONENTS := debuginfo object support
+LINK_COMPONENTS := DebugInfoDWARF object support
 
 include $(LEVEL)/Makefile.config