diff --git a/llvm/lib/Target/BPF/BTF.h b/llvm/include/llvm/DebugInfo/BTF/BTF.h rename from llvm/lib/Target/BPF/BTF.h rename to llvm/include/llvm/DebugInfo/BTF/BTF.h --- a/llvm/lib/Target/BPF/BTF.h +++ b/llvm/include/llvm/DebugInfo/BTF/BTF.h @@ -152,9 +152,9 @@ /// The exact number of BTFEnum64 is stored in the vlen (of the /// info in "struct CommonType"). struct BTFEnum64 { - uint32_t NameOff; ///< Enum name offset in the string table - uint32_t Val_Lo32; ///< Enum member lo32 value - uint32_t Val_Hi32; ///< Enum member hi32 value + uint32_t NameOff; ///< Enum name offset in the string table + uint32_t Val_Lo32; ///< Enum member lo32 value + uint32_t Val_Hi32; ///< Enum member hi32 value }; /// BTF_KIND_ARRAY is followed by one "struct BTFArray". @@ -218,10 +218,10 @@ uint8_t Flags; uint32_t HdrLen; - uint32_t FuncInfoOff; ///< Offset of func info section - uint32_t FuncInfoLen; ///< Length of func info section - uint32_t LineInfoOff; ///< Offset of line info section - uint32_t LineInfoLen; ///< Length of line info section + uint32_t FuncInfoOff; ///< Offset of func info section + uint32_t FuncInfoLen; ///< Length of func info section + uint32_t LineInfoOff; ///< Offset of line info section + uint32_t LineInfoLen; ///< Length of line info section uint32_t FieldRelocOff; ///< Offset of offset reloc section uint32_t FieldRelocLen; ///< Length of offset reloc section }; @@ -263,7 +263,7 @@ /// Specifying offset relocation's in one section. struct SecFieldReloc { - uint32_t SecNameOff; ///< Section name index in the .BTF string table + uint32_t SecNameOff; ///< Section name index in the .BTF string table uint32_t NumFieldReloc; ///< Number of offset reloc's in this section }; diff --git a/llvm/lib/Target/BPF/BTF.def b/llvm/include/llvm/DebugInfo/BTF/BTF.def rename from llvm/lib/Target/BPF/BTF.def rename to llvm/include/llvm/DebugInfo/BTF/BTF.def diff --git a/llvm/lib/Target/BPF/BTFDebug.h b/llvm/lib/Target/BPF/BTFDebug.h --- a/llvm/lib/Target/BPF/BTFDebug.h +++ b/llvm/lib/Target/BPF/BTFDebug.h @@ -16,11 +16,11 @@ #include "llvm/ADT/StringMap.h" #include "llvm/CodeGen/DebugHandlerBase.h" +#include "llvm/DebugInfo/BTF/BTF.h" #include #include #include #include -#include "BTF.h" namespace llvm { diff --git a/llvm/lib/Target/BPF/BTFDebug.cpp b/llvm/lib/Target/BPF/BTFDebug.cpp --- a/llvm/lib/Target/BPF/BTFDebug.cpp +++ b/llvm/lib/Target/BPF/BTFDebug.cpp @@ -30,7 +30,7 @@ static const char *BTFKindStr[] = { #define HANDLE_BTF_KIND(ID, NAME) "BTF_KIND_" #NAME, -#include "BTF.def" +#include "llvm/DebugInfo/BTF/BTF.def" }; /// Emit a BTF common type.