summaryrefslogtreecommitdiffstats
path: root/lib/clang
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-12-16 18:45:21 +0000
committerdim <dim@FreeBSD.org>2013-12-16 18:45:21 +0000
commite55c0034903e3d244ea0eddae9bfb1e622234ae5 (patch)
tree08869689c9a29053e342b203c1d0555bc1a0ca90 /lib/clang
parenta1af8245fa426dcbd6bddec15a622e454ef205bf (diff)
downloadFreeBSD-src-e55c0034903e3d244ea0eddae9bfb1e622234ae5.zip
FreeBSD-src-e55c0034903e3d244ea0eddae9bfb1e622234ae5.tar.gz
Enable llvm's integrated assembler for PowerPC, since it should now be
good enough for typical usage. Requested by: rdivacky MFC after: 1 week
Diffstat (limited to 'lib/clang')
-rw-r--r--lib/clang/Makefile1
-rw-r--r--lib/clang/include/PPCGenAsmMatcher.inc2
-rw-r--r--lib/clang/include/llvm/Config/AsmParsers.def1
-rw-r--r--lib/clang/libllvmpowerpcasmparser/Makefile16
4 files changed, 20 insertions, 0 deletions
diff --git a/lib/clang/Makefile b/lib/clang/Makefile
index 3f30c96..2310ab9 100644
--- a/lib/clang/Makefile
+++ b/lib/clang/Makefile
@@ -74,6 +74,7 @@ SUBDIR= libclanganalysis \
libllvmmipsdisassembler \
libllvmmipsinfo \
libllvmmipsinstprinter \
+ libllvmpowerpcasmparser \
libllvmpowerpccodegen \
libllvmpowerpcdesc \
libllvmpowerpcinfo \
diff --git a/lib/clang/include/PPCGenAsmMatcher.inc b/lib/clang/include/PPCGenAsmMatcher.inc
new file mode 100644
index 0000000..0538126
--- /dev/null
+++ b/lib/clang/include/PPCGenAsmMatcher.inc
@@ -0,0 +1,2 @@
+/* $FreeBSD$ */
+#include "PPCGenAsmMatcher.inc.h"
diff --git a/lib/clang/include/llvm/Config/AsmParsers.def b/lib/clang/include/llvm/Config/AsmParsers.def
index 024462e..a2c0f78 100644
--- a/lib/clang/include/llvm/Config/AsmParsers.def
+++ b/lib/clang/include/llvm/Config/AsmParsers.def
@@ -2,6 +2,7 @@
LLVM_ASM_PARSER(ARM)
LLVM_ASM_PARSER(Mips)
+LLVM_ASM_PARSER(PowerPC)
LLVM_ASM_PARSER(X86)
#undef LLVM_ASM_PARSER
diff --git a/lib/clang/libllvmpowerpcasmparser/Makefile b/lib/clang/libllvmpowerpcasmparser/Makefile
new file mode 100644
index 0000000..ff1f533
--- /dev/null
+++ b/lib/clang/libllvmpowerpcasmparser/Makefile
@@ -0,0 +1,16 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+LIB= llvmpowerpcasmparser
+
+SRCDIR= lib/Target/PowerPC/AsmParser
+INCDIR= lib/Target/PowerPC
+SRCS= PPCAsmParser.cpp
+
+TGHDRS= PPCGenAsmMatcher \
+ PPCGenInstrInfo \
+ PPCGenRegisterInfo \
+ PPCGenSubtargetInfo
+
+.include "../clang.lib.mk"
OpenPOWER on IntegriCloud