Don't create a MemoryBuffer just to get the MemoryBufferRef. NFC.
[oota-llvm.git] / tools / llc / Makefile
index 6b5b125d8abcd74db6d583269fc40d482c22e5eb..71bce4dc1adf9a9cc303b1cd432a67f44d70b8af 100644 (file)
@@ -7,16 +7,12 @@
 # 
 ##===----------------------------------------------------------------------===##
 
-LEVEL = ../..
-TOOLNAME = llc
-CXXFLAGS = -fno-rtti
+LEVEL := ../..
+TOOLNAME := llc
+LINK_COMPONENTS := all-targets bitreader asmparser irreader
 
-# Include this here so we can get the configuration of the targets
-# that have been configured for construction. We have to do this 
-# early so we can set up LINK_COMPONENTS before including Makefile.rules
-include $(LEVEL)/Makefile.config
+# Support plugins.
+NO_DEAD_STRIP := 1
 
-LINK_COMPONENTS := $(TARGETS_TO_BUILD) bitreader asmparser
-
-include $(LLVM_SRC_ROOT)/Makefile.rules
+include $(LEVEL)/Makefile.common