Add llvm-rs-as tool.
This tool takes an .ll file as input and generates bitcode from it.
The -bitcode-version flags allows to specify the version of the
bitcode that should be emitted.
Change-Id: I08b4f1fd0d7b218613e217249e648c9ca4393e38
diff --git a/Android.mk b/Android.mk
index b09478e..6574d18 100644
--- a/Android.mk
+++ b/Android.mk
@@ -127,6 +127,27 @@
include $(BUILD_HOST_EXECUTABLE)
+# ========================================================
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := llvm-rs-as
+LOCAL_MODULE_TAGS := optional
+
+LOCAL_MODULE_CLASS := EXECUTABLES
+
+LOCAL_SRC_FILES := \
+ llvm-rs-as.cpp
+
+LOCAL_CFLAGS += $(local_cflags_for_slang)
+LOCAL_STATIC_LIBRARIES := \
+ libslang \
+ $(static_libraries_needed_by_slang)
+LOCAL_SHARED_LIBRARIES := \
+ libLLVM
+
+include $(CLANG_HOST_BUILD_MK)
+include $(BUILD_HOST_EXECUTABLE)
+
# Executable llvm-rs-cc for host
# ========================================================
include $(CLEAR_VARS)