[TableGen] Use array_pod_sort. NFC
[oota-llvm.git] / utils / TableGen / Makefile
index 128b2cdd0def91f1c9bc112d27608e7742d4e37a..9bfd94b7576bd24fdedbf838e67e07e127f0cff0 100644 (file)
@@ -1,30 +1,18 @@
 ##===- utils/TableGen/Makefile -----------------------------*- Makefile -*-===##
-# 
+#
 #                     The LLVM Compiler Infrastructure
 #
-# This file was developed by the LLVM research group and is distributed under
-# the University of Illinois Open Source License. See LICENSE.TXT for details.
-# 
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+#
 ##===----------------------------------------------------------------------===##
 
 LEVEL = ../..
-TOOLNAME = tblgen
-NO_INSTALL = 1;
-USEDLIBS = LLVMSupport.a LLVMSystem.a
-EXTRA_DIST = FileParser.cpp.cvs FileParser.h.cvs FileParser.y.cvs
-REQUIRES_EH := 1
-REQUIRES_RTTI := 1
-
-include $(LEVEL)/Makefile.common
+TOOLNAME = llvm-tblgen
+USEDLIBS = LLVMTableGen.a LLVMSupport.a
 
-# Disable -pedantic for tblgen
-CompileCommonOpts := $(filter-out -pedantic,$(CompileCommonOpts))
-CompileCommonOpts := $(filter-out -Wno-long-long,$(CompileCommonOpts))
+# This tool has no plugins, optimize startup time.
+TOOL_NO_EXPORTS = 1
 
-#
-# Make the source file depend on the header file.  In this way, dependencies
-# (which depend on the source file) won't get generated until bison is done
-# generating the C source and header files for the parser.
-#
-$(ObjDir)/TGLexer.o : $(PROJ_SRC_DIR)/FileParser.h 
+include $(LEVEL)/Makefile.common