[llvm] a806aef - [gn] port 7ddf7d87831a and b2518971d82331 (LLVMOrcDebugging)
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 29 05:28:50 PDT 2023
Author: Nico Weber
Date: 2023-09-29T08:28:41-04:00
New Revision: a806aef7535075a1fa2e2159803c9dceb042b6ff
URL: https://github.com/llvm/llvm-project/commit/a806aef7535075a1fa2e2159803c9dceb042b6ff
DIFF: https://github.com/llvm/llvm-project/commit/a806aef7535075a1fa2e2159803c9dceb042b6ff.diff
LOG: [gn] port 7ddf7d87831a and b2518971d82331 (LLVMOrcDebugging)
Added:
llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/Debugging/BUILD.gn
Modified:
llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/lli/BUILD.gn
llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn b/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
index de083429dd2c3c2..a578651349754e9 100644
--- a/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
+++ b/llvm/utils/gn/secondary/clang/lib/Interpreter/BUILD.gn
@@ -15,6 +15,7 @@ static_library("Interpreter") {
"//clang/lib/Sema",
"//clang/lib/Serialization",
"//llvm/lib/ExecutionEngine/Orc",
+ "//llvm/lib/ExecutionEngine/Orc/Debugging",
"//llvm/lib/IR",
"//llvm/lib/Option",
"//llvm/lib/Support",
diff --git a/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/BUILD.gn
index d1034f05bbaa458..a813bf3f508b2d3 100644
--- a/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/BUILD.gn
@@ -22,8 +22,6 @@ static_library("Orc") {
"Core.cpp",
"DebugObjectManagerPlugin.cpp",
"DebugUtils.cpp",
- "DebuggerSupport.cpp",
- "DebuggerSupportPlugin.cpp",
"ELFNixPlatform.cpp",
"EPCDebugObjectRegistrar.cpp",
"EPCDynamicLibrarySearchGenerator.cpp",
@@ -51,7 +49,6 @@ static_library("Orc") {
"ObjectTransformLayer.cpp",
"OrcABISupport.cpp",
"OrcV2CBindings.cpp",
- "PerfSupportPlugin.cpp",
"RTDyldObjectLinkingLayer.cpp",
"SimpleRemoteEPC.cpp",
"SpeculateAnalyses.cpp",
diff --git a/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/Debugging/BUILD.gn b/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/Debugging/BUILD.gn
new file mode 100644
index 000000000000000..64d38360e2500b7
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/Debugging/BUILD.gn
@@ -0,0 +1,19 @@
+static_library("Debugging") {
+ output_name = "LLVMOrcDebugging"
+ deps = [
+ "//llvm/lib/ExecutionEngine/Orc",
+ "//llvm/lib/ExecutionEngine/Orc/Shared",
+ "//llvm/lib/DebugInfo/DWARF",
+ "//llvm/lib/Support",
+ "//llvm/lib/TargetParser",
+ ]
+ sources = [
+ "DebugInfoSupport.cpp",
+ "DebuggerSupport.cpp",
+ "DebuggerSupportPlugin.cpp",
+ "PerfSupportPlugin.cpp",
+ ]
+ if (current_os == "linux") {
+ libs = [ "rt" ]
+ }
+}
diff --git a/llvm/utils/gn/secondary/llvm/tools/lli/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/lli/BUILD.gn
index fcc8e190a2c0b10..19b02d0d526cbd5 100644
--- a/llvm/utils/gn/secondary/llvm/tools/lli/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/lli/BUILD.gn
@@ -9,6 +9,7 @@ executable("lli") {
"//llvm/lib/ExecutionEngine/Interpreter",
"//llvm/lib/ExecutionEngine/MCJIT",
"//llvm/lib/ExecutionEngine/Orc",
+ "//llvm/lib/ExecutionEngine/Orc/Debugging",
"//llvm/lib/ExecutionEngine/Orc/Shared",
"//llvm/lib/ExecutionEngine/Orc/TargetProcess",
"//llvm/lib/ExecutionEngine/RuntimeDyld",
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
index 875ff1edc2d3175..bf96d0140050002 100644
--- a/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-jitlink/BUILD.gn
@@ -4,6 +4,7 @@ executable("llvm-jitlink") {
"//llvm/lib/ExecutionEngine",
"//llvm/lib/ExecutionEngine/JITLink",
"//llvm/lib/ExecutionEngine/Orc",
+ "//llvm/lib/ExecutionEngine/Orc/Debugging",
"//llvm/lib/ExecutionEngine/RuntimeDyld",
"//llvm/lib/MC",
"//llvm/lib/Object",
More information about the llvm-commits
mailing list