Skip to content

Commit 0e60a9e

Browse files
committed
Update build glue to build default llvm tools for world.
1 parent 1e1229d commit 0e60a9e

File tree

6 files changed

+51
-0
lines changed

6 files changed

+51
-0
lines changed

usr.bin/clang/llvm-dwp/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PROG_CXX= llvm-dwp
33
MAN=
44

55
SRCDIR= llvm/tools/llvm-dwp
6+
SRCS+= llvm-dwp-driver.cpp
67
SRCS+= llvm-dwp.cpp
78

89
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===-- driver-template.cpp -----------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#include "llvm/Support/LLVMDriver.h"
10+
#include "llvm/ADT/ArrayRef.h"
11+
12+
int llvm_dwp_main(int argc, char **, const llvm::ToolContext &);
13+
14+
int main(int argc, char **argv) {
15+
return llvm_dwp_main(argc, argv, {argv[0], nullptr, false});
16+
}

usr.bin/clang/llvm-objdump/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SRCS+= OffloadDump.cpp
1111
SRCS+= SourcePrinter.cpp
1212
SRCS+= WasmDump.cpp
1313
SRCS+= XCOFFDump.cpp
14+
SRCS+= llvm-objdump-driver.cpp
1415
SRCS+= llvm-objdump.cpp
1516

1617
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===-- driver-template.cpp -----------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#include "llvm/Support/LLVMDriver.h"
10+
#include "llvm/ADT/ArrayRef.h"
11+
12+
int llvm_objdump_main(int argc, char **, const llvm::ToolContext &);
13+
14+
int main(int argc, char **argv) {
15+
return llvm_objdump_main(argc, argv, {argv[0], nullptr, false});
16+
}

usr.bin/clang/llvm-symbolizer/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PROG_CXX= llvm-symbolizer
55
MAN= llvm-symbolizer.1 llvm-addr2line.1
66

77
SRCDIR= llvm/tools/llvm-symbolizer
8+
SRCS+= llvm-symbolizer-driver.cpp
89
SRCS+= llvm-symbolizer.cpp
910

1011
.include "${SRCTOP}/lib/clang/llvm.pre.mk"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//===-- driver-template.cpp -----------------------------------------------===//
2+
//
3+
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4+
// See https://llvm.org/LICENSE.txt for license information.
5+
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6+
//
7+
//===----------------------------------------------------------------------===//
8+
9+
#include "llvm/Support/LLVMDriver.h"
10+
#include "llvm/ADT/ArrayRef.h"
11+
12+
int llvm_symbolizer_main(int argc, char **, const llvm::ToolContext &);
13+
14+
int main(int argc, char **argv) {
15+
return llvm_symbolizer_main(argc, argv, {argv[0], nullptr, false});
16+
}

0 commit comments

Comments
 (0)