From d27f282ac53f68d9caa2c1196c1ab56b24373599 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 13 Sep 2019 13:04:59 +0000 Subject: [PATCH] Revert "gn build: (manually) merge r371834" This reverts commit abc7e2b6004cd693cf3b6dedbc7908e099c7ac6a. The commit was incomplete. I'll revert and reland the full commit, so that the correct change is a single commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371850 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/gn/secondary/clang/lib/AST/BUILD.gn | 21 ---------- .../secondary/clang/lib/AST/Interp/BUILD.gn | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 21 deletions(-) create mode 100644 utils/gn/secondary/clang/lib/AST/Interp/BUILD.gn diff --git a/utils/gn/secondary/clang/lib/AST/BUILD.gn b/utils/gn/secondary/clang/lib/AST/BUILD.gn index 0ccc1933cdb..c98910691ab 100644 --- a/utils/gn/secondary/clang/lib/AST/BUILD.gn +++ b/utils/gn/secondary/clang/lib/AST/BUILD.gn @@ -65,27 +65,6 @@ static_library("AST") { "ExternalASTSource.cpp", "FormatString.cpp", "InheritViz.cpp", - "Interp/Block.cpp", - "Interp/ByteCodeEmitter.cpp", - "Interp/ByteCodeExprGen.cpp", - "Interp/ByteCodeGenError.cpp", - "Interp/ByteCodeStmtGen.cpp", - "Interp/Context.cpp", - "Interp/Descriptor.cpp", - "Interp/Disasm.cpp", - "Interp/EvalEmitter.cpp", - "Interp/Frame.cpp", - "Interp/Function.cpp", - "Interp/Interp.cpp", - "Interp/InterpFrame.cpp", - "Interp/InterpStack.cpp", - "Interp/InterpState.cpp", - "Interp/Pointer.cpp", - "Interp/PrimType.cpp", - "Interp/Program.cpp", - "Interp/Record.cpp", - "Interp/Source.cpp", - "Interp/State.cpp", "ItaniumCXXABI.cpp", "ItaniumMangle.cpp", "JSONNodeDumper.cpp", diff --git a/utils/gn/secondary/clang/lib/AST/Interp/BUILD.gn b/utils/gn/secondary/clang/lib/AST/Interp/BUILD.gn new file mode 100644 index 00000000000..5a84d37847f --- /dev/null +++ b/utils/gn/secondary/clang/lib/AST/Interp/BUILD.gn @@ -0,0 +1,39 @@ +import("//clang/utils/TableGen/clang_tablegen.gni") + +clang_tablegen("Opcodes") { + args = [ "-gen-clang-opcodes" ] + td_file = "Opcodes.td" +} + +static_library("Interp") { + output_name = "clangInterp" + configs += [ "//llvm/utils/gn/build:clang_code" ] + deps = [ + "//clang/lib/AST/Interp:Opcodes", + "//clang/lib/Basic", + "//llvm/lib/Support", + ] + sources = [ + "Block.cpp", + "ByteCodeEmitter.cpp", + "ByteCodeExprGen.cpp", + "ByteCodeGenError.cpp", + "ByteCodeStmtGen.cpp", + "Context.cpp", + "Descriptor.cpp", + "Disasm.cpp", + "EvalEmitter.cpp", + "Frame.cpp", + "Function.cpp", + "Interp.cpp", + "InterpFrame.cpp", + "InterpStack.cpp", + "InterpState.cpp", + "Pointer.cpp", + "Program.cpp", + "Record.cpp", + "Source.cpp", + "State.cpp", + "Type.cpp", + ] +} -- 2.40.0