[TableGen] Use array_pod_sort. NFC
[oota-llvm.git] / utils / TableGen / Makefile
index 21c68c6b02d1d5b93f7f66f66404a54769017509..9bfd94b7576bd24fdedbf838e67e07e127f0cff0 100644 (file)
@@ -1,29 +1,18 @@
+##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===##
+#
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
+##===----------------------------------------------------------------------===##
+
 LEVEL = ../..
-TOOLNAME = tblgen
-USEDLIBS = support.a
+TOOLNAME = llvm-tblgen
+USEDLIBS = LLVMTableGen.a LLVMSupport.a
 
-.PRECIOUS: FileLexer.cpp FileParser.cpp
+# This tool has no plugins, optimize startup time.
+TOOL_NO_EXPORTS = 1
 
 include $(LEVEL)/Makefile.common
 
-clean::
-       -rm -f FileParser.cpp FileParser.h FileLexer.cpp CommandLine.cpp
-       -rm -f FileParser.output
-
-
-dump:: $(TOOLEXENAME_G)
-       $(TOOLEXENAME_G) < X86.td
-
-parse: $(TOOLEXENAME_G)
-       $(TOOLEXENAME_G) < X86.td -parse
-
-test:: $(TOOLEXENAME_G)
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Register
-       @echo 
-       @echo "};"
-
-       @echo "enum {"
-       @$(TOOLEXENAME_G) < X86.td -class=Instruction
-       @echo 
-       @echo "};"