[Lldb-commits] [lldb] 5587993 - [lldb] Move FormatterBytecode.{h, def} to include/ (#179355)

via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 3 08:28:25 PST 2026


Author: Dave Lee
Date: 2026-02-03T08:18:50-08:00
New Revision: 5587993548a6d764334c12b46616aa48606f2d6f

URL: https://github.com/llvm/llvm-project/commit/5587993548a6d764334c12b46616aa48606f2d6f
DIFF: https://github.com/llvm/llvm-project/commit/5587993548a6d764334c12b46616aa48606f2d6f.diff

LOG: [lldb] Move FormatterBytecode.{h,def} to include/ (#179355)

To allow other headers to reference types declared in `FormatterBytecode.h`.

Added: 
    lldb/include/lldb/DataFormatters/FormatterBytecode.def
    lldb/include/lldb/DataFormatters/FormatterBytecode.h

Modified: 
    lldb/source/DataFormatters/FormatterBytecode.cpp
    lldb/source/DataFormatters/FormatterSection.cpp
    lldb/source/DataFormatters/TypeSummary.cpp
    lldb/unittests/DataFormatter/FormatterBytecodeTest.cpp

Removed: 
    lldb/source/DataFormatters/FormatterBytecode.def
    lldb/source/DataFormatters/FormatterBytecode.h


################################################################################
diff  --git a/lldb/source/DataFormatters/FormatterBytecode.def b/lldb/include/lldb/DataFormatters/FormatterBytecode.def
similarity index 100%
rename from lldb/source/DataFormatters/FormatterBytecode.def
rename to lldb/include/lldb/DataFormatters/FormatterBytecode.def

diff  --git a/lldb/source/DataFormatters/FormatterBytecode.h b/lldb/include/lldb/DataFormatters/FormatterBytecode.h
similarity index 100%
rename from lldb/source/DataFormatters/FormatterBytecode.h
rename to lldb/include/lldb/DataFormatters/FormatterBytecode.h

diff  --git a/lldb/source/DataFormatters/FormatterBytecode.cpp b/lldb/source/DataFormatters/FormatterBytecode.cpp
index c56d0b2a55e5b..66f7d01ebaa7c 100644
--- a/lldb/source/DataFormatters/FormatterBytecode.cpp
+++ b/lldb/source/DataFormatters/FormatterBytecode.cpp
@@ -6,7 +6,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FormatterBytecode.h"
+#include "lldb/DataFormatters/FormatterBytecode.h"
 #include "lldb/Utility/LLDBLog.h"
 #include "lldb/ValueObject/ValueObject.h"
 #include "lldb/ValueObject/ValueObjectConstResult.h"
@@ -26,7 +26,7 @@ std::string toString(FormatterBytecode::OpCodes op) {
     const char *s = MNEMONIC;                                                  \
     return s ? s : #NAME;                                                      \
   }
-#include "FormatterBytecode.def"
+#include "lldb/DataFormatters/FormatterBytecode.def"
 #undef DEFINE_OPCODE
   }
   return llvm::utostr(op);
@@ -37,7 +37,7 @@ std::string toString(FormatterBytecode::Selectors sel) {
 #define DEFINE_SELECTOR(ID, NAME)                                              \
   case ID:                                                                     \
     return "@" #NAME;
-#include "FormatterBytecode.def"
+#include "lldb/DataFormatters/FormatterBytecode.def"
 #undef DEFINE_SELECTOR
   }
   return "@" + llvm::utostr(sel);
@@ -48,7 +48,7 @@ std::string toString(FormatterBytecode::Signatures sig) {
 #define DEFINE_SIGNATURE(ID, NAME)                                             \
   case ID:                                                                     \
     return "@" #NAME;
-#include "FormatterBytecode.def"
+#include "lldb/DataFormatters/FormatterBytecode.def"
 #undef DEFINE_SIGNATURE
   }
   return llvm::utostr(sig);

diff  --git a/lldb/source/DataFormatters/FormatterSection.cpp b/lldb/source/DataFormatters/FormatterSection.cpp
index 1de633f4998e0..63eb45b1637f2 100644
--- a/lldb/source/DataFormatters/FormatterSection.cpp
+++ b/lldb/source/DataFormatters/FormatterSection.cpp
@@ -6,7 +6,8 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "FormatterBytecode.h"
+#include "lldb/DataFormatters/FormatterSection.h"
+
 #include "lldb/Core/Module.h"
 #include "lldb/DataFormatters/DataVisualization.h"
 #include "lldb/Utility/LLDBLog.h"

diff  --git a/lldb/source/DataFormatters/TypeSummary.cpp b/lldb/source/DataFormatters/TypeSummary.cpp
index 91ec1c27ab63a..dd43bdfdfdfe4 100644
--- a/lldb/source/DataFormatters/TypeSummary.cpp
+++ b/lldb/source/DataFormatters/TypeSummary.cpp
@@ -8,8 +8,8 @@
 
 #include "lldb/DataFormatters/TypeSummary.h"
 
-#include "FormatterBytecode.h"
 #include "lldb/Core/FormatEntity.h"
+#include "lldb/DataFormatters/FormatterBytecode.h"
 #include "lldb/lldb-enumerations.h"
 #include "lldb/lldb-public.h"
 

diff  --git a/lldb/unittests/DataFormatter/FormatterBytecodeTest.cpp b/lldb/unittests/DataFormatter/FormatterBytecodeTest.cpp
index 5e980c3e1913c..0956c55e9e880 100644
--- a/lldb/unittests/DataFormatter/FormatterBytecodeTest.cpp
+++ b/lldb/unittests/DataFormatter/FormatterBytecodeTest.cpp
@@ -1,4 +1,4 @@
-#include "DataFormatters/FormatterBytecode.h"
+#include "lldb/DataFormatters/FormatterBytecode.h"
 #include "lldb/Utility/StreamString.h"
 
 #include "gtest/gtest.h"


        


More information about the lldb-commits mailing list