Index: llvm/trunk/utils/gn/secondary/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/BUILD.gn +++ llvm/trunk/utils/gn/secondary/BUILD.gn @@ -1,6 +1,8 @@ group("default") { deps = [ + "//llvm/lib/Bitcode/Reader", "//llvm/lib/IR", + "//llvm/lib/MC/MCParser", "//llvm/tools/llvm-undname", "//llvm/utils/TableGen:llvm-tblgen", ] Index: llvm/trunk/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/Bitcode/Reader/BUILD.gn @@ -0,0 +1,16 @@ +static_library("Reader") { + output_name = "LLVMBitReader" + deps = [ + "//llvm/include/llvm/Config:llvm-config", + "//llvm/lib/IR", + "//llvm/lib/Support", + ] + + sources = [ + "BitReader.cpp", + "BitcodeReader.cpp", + "BitstreamReader.cpp", + "MetadataLoader.cpp", + "ValueList.cpp", + ] +} Index: llvm/trunk/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn =================================================================== --- llvm/trunk/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn +++ llvm/trunk/utils/gn/secondary/llvm/lib/MC/MCParser/BUILD.gn @@ -0,0 +1,20 @@ +static_library("MCParser") { + output_name = "LLVMMCParser" + deps = [ + "//llvm/lib/MC", + "//llvm/lib/Support", + ] + + sources = [ + "AsmLexer.cpp", + "AsmParser.cpp", + "COFFAsmParser.cpp", + "DarwinAsmParser.cpp", + "ELFAsmParser.cpp", + "MCAsmLexer.cpp", + "MCAsmParser.cpp", + "MCAsmParserExtension.cpp", + "MCTargetAsmParser.cpp", + "WasmAsmParser.cpp", + ] +}