aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-08-19 17:39:26 -0700
committerYing Wang <wangying@google.com>2010-08-19 17:39:26 -0700
commit28c238c9ded0b5c91e122c94b5a02d76a5245c11 (patch)
treeb85fb84a4b31993292f3d88b66df518ed5975b3c
parent3e5165a7cc01d28b680a5f409eda72788cb451d3 (diff)
downloadexternal_llvm-28c238c9ded0b5c91e122c94b5a02d76a5245c11.tar.gz
external_llvm-28c238c9ded0b5c91e122c94b5a02d76a5245c11.tar.bz2
external_llvm-28c238c9ded0b5c91e122c94b5a02d76a5245c11.zip
Fix sim build.
Note that this only makes the sim build green, but the built images won't work for sure: No libbcc.so, which depends on something else that can not build in sim mode. No x86 bitcode is generated as well, I believe. Change-Id: Idca8378427196622ac77cd56a38c6a160f03ba22
-rw-r--r--Android.mk5
-rw-r--r--clear_tblgen_vars.mk5
-rw-r--r--lib/Analysis/Android.mk5
-rw-r--r--lib/Analysis/IPA/Android.mk5
-rw-r--r--lib/AsmParser/Android.mk5
-rw-r--r--lib/Bitcode/Reader/Android.mk5
-rw-r--r--lib/Bitcode/Writer/Android.mk5
-rw-r--r--lib/CodeGen/Android.mk5
-rw-r--r--lib/CodeGen/AsmPrinter/Android.mk5
-rw-r--r--lib/CodeGen/SelectionDAG/Android.mk5
-rw-r--r--lib/ExecutionEngine/JIT/Android.mk5
-rw-r--r--lib/Linker/Android.mk5
-rw-r--r--lib/MC/Android.mk5
-rw-r--r--lib/MC/MCParser/Android.mk5
-rw-r--r--lib/Support/Android.mk5
-rw-r--r--lib/System/Android.mk5
-rw-r--r--lib/Target/ARM/Android.mk5
-rw-r--r--lib/Target/ARM/AsmParser/Android.mk5
-rw-r--r--lib/Target/ARM/AsmPrinter/Android.mk5
-rw-r--r--lib/Target/ARM/Disassembler/Android.mk5
-rw-r--r--lib/Target/ARM/TargetInfo/Android.mk5
-rw-r--r--lib/Target/Android.mk5
-rw-r--r--lib/Target/X86/Android.mk5
-rw-r--r--lib/Target/X86/AsmParser/Android.mk5
-rw-r--r--lib/Target/X86/AsmPrinter/Android.mk5
-rw-r--r--lib/Target/X86/Disassembler/Android.mk5
-rw-r--r--lib/Target/X86/TargetInfo/Android.mk5
-rw-r--r--lib/Transforms/IPO/Android.mk5
-rw-r--r--lib/Transforms/InstCombine/Android.mk5
-rw-r--r--lib/Transforms/Instrumentation/Android.mk4
-rw-r--r--lib/Transforms/Scalar/Android.mk5
-rw-r--r--lib/Transforms/Utils/Android.mk5
-rw-r--r--lib/VMCore/Android.mk5
-rw-r--r--llvm-device-build.mk5
-rw-r--r--llvm-gen-intrinsics.mk5
-rw-r--r--llvm-host-build.mk11
-rw-r--r--llvm-tblgen-rules.mk5
-rw-r--r--llvm.mk5
-rw-r--r--tblgen-rules.mk5
-rw-r--r--utils/TableGen/Android.mk5
40 files changed, 6 insertions, 199 deletions
diff --git a/Android.mk b/Android.mk
index 55650723c5..ec758b98c0 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
LLVM_ROOT_PATH := $(LOCAL_PATH)
LLVM_ENABLE_ASSERTION := true
@@ -44,5 +41,3 @@ subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
include $(LOCAL_PATH)/llvm.mk
include $(subdirs)
-
-endif
diff --git a/clear_tblgen_vars.mk b/clear_tblgen_vars.mk
index 7940b9b82f..6c9623e427 100644
--- a/clear_tblgen_vars.mk
+++ b/clear_tblgen_vars.mk
@@ -1,7 +1,2 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
TBLGEN_TABLES :=
TBLGEN_TD_DIR :=
-
-endif
diff --git a/lib/Analysis/Android.mk b/lib/Analysis/Android.mk
index 06bf0ed78e..3921860644 100644
--- a/lib/Analysis/Android.mk
+++ b/lib/Analysis/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
analysis_SRC_FILES := \
@@ -72,5 +69,3 @@ LOCAL_MODULE:= libLLVMAnalysis
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Analysis/IPA/Android.mk b/lib/Analysis/IPA/Android.mk
index 4408cf4684..6d15e52293 100644
--- a/lib/Analysis/IPA/Android.mk
+++ b/lib/Analysis/IPA/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
analysis_ipa_SRC_FILES := \
@@ -32,5 +29,3 @@ LOCAL_MODULE:= libLLVMipa
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/AsmParser/Android.mk b/lib/AsmParser/Android.mk
index 0f18b4f1cb..c6160546ca 100644
--- a/lib/AsmParser/Android.mk
+++ b/lib/AsmParser/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
asm_parser_SRC_FILES := \
@@ -29,5 +26,3 @@ include $(BUILD_HOST_STATIC_LIBRARY)
#
#include $(LOCAL_PATH)/../../llvm-device-build.mk
#include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Bitcode/Reader/Android.mk b/lib/Bitcode/Reader/Android.mk
index d2d2e87035..165b0d0cde 100644
--- a/lib/Bitcode/Reader/Android.mk
+++ b/lib/Bitcode/Reader/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
bitcode_reader_SRC_FILES := \
@@ -30,5 +27,3 @@ LOCAL_MODULE:= libLLVMBitReader
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Bitcode/Writer/Android.mk b/lib/Bitcode/Writer/Android.mk
index dd578402c9..5147c4646d 100644
--- a/lib/Bitcode/Writer/Android.mk
+++ b/lib/Bitcode/Writer/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
# For the host only
@@ -18,5 +15,3 @@ LOCAL_MODULE:= libLLVMBitWriter
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/CodeGen/Android.mk b/lib/CodeGen/Android.mk
index fa4484ce74..d232e551a0 100644
--- a/lib/CodeGen/Android.mk
+++ b/lib/CodeGen/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
codegen_SRC_FILES := \
@@ -102,5 +99,3 @@ LOCAL_MODULE:= libLLVMCodeGen
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/CodeGen/AsmPrinter/Android.mk b/lib/CodeGen/AsmPrinter/Android.mk
index d2bbe89251..abe5bb6c6f 100644
--- a/lib/CodeGen/AsmPrinter/Android.mk
+++ b/lib/CodeGen/AsmPrinter/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
codegen_asmprinter_SRC_FILES := \
@@ -36,5 +33,3 @@ LOCAL_MODULE:= libLLVMAsmPrinter
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/CodeGen/SelectionDAG/Android.mk b/lib/CodeGen/SelectionDAG/Android.mk
index ed653403df..899123b260 100644
--- a/lib/CodeGen/SelectionDAG/Android.mk
+++ b/lib/CodeGen/SelectionDAG/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
codegen_selectiondag_SRC_FILES := \
@@ -49,5 +46,3 @@ LOCAL_MODULE:= libLLVMSelectionDAG
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/ExecutionEngine/JIT/Android.mk b/lib/ExecutionEngine/JIT/Android.mk
index 34bdf2c1af..1c7e27f1b3 100644
--- a/lib/ExecutionEngine/JIT/Android.mk
+++ b/lib/ExecutionEngine/JIT/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
# For the host
@@ -33,5 +30,3 @@ LOCAL_MODULE:= libLLVMJIT
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Linker/Android.mk b/lib/Linker/Android.mk
index aa8028ef21..e0611ba798 100644
--- a/lib/Linker/Android.mk
+++ b/lib/Linker/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
# For the host
@@ -17,5 +14,3 @@ LOCAL_MODULE:= libLLVMLinker
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/MC/Android.mk b/lib/MC/Android.mk
index 30c491ca17..a2dc85a9b1 100644
--- a/lib/MC/Android.mk
+++ b/lib/MC/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
mc_SRC_FILES := \
@@ -48,5 +45,3 @@ LOCAL_MODULE:= libLLVMMC
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/MC/MCParser/Android.mk b/lib/MC/MCParser/Android.mk
index 0232139fea..1335362be7 100644
--- a/lib/MC/MCParser/Android.mk
+++ b/lib/MC/MCParser/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
mc_parser_SRC_FILES := \
@@ -31,5 +28,3 @@ LOCAL_MODULE:= libLLVMMCParser
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Support/Android.mk b/lib/Support/Android.mk
index 4d2b8a8f26..e97275381c 100644
--- a/lib/Support/Android.mk
+++ b/lib/Support/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
support_SRC_FILES := \
@@ -73,5 +70,3 @@ LOCAL_MODULE:= libLLVMSupport
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/System/Android.mk b/lib/System/Android.mk
index 94eac301e2..d48bc44aa8 100644
--- a/lib/System/Android.mk
+++ b/lib/System/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
system_SRC_FILES := \
@@ -53,5 +50,3 @@ LOCAL_MODULE:= libLLVMSystem
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/ARM/Android.mk b/lib/Target/ARM/Android.mk
index 8d499d600f..e4d2f68c38 100644
--- a/lib/Target/ARM/Android.mk
+++ b/lib/Target/ARM/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
arm_codegen_TBLGEN_TABLES := \
@@ -71,5 +68,3 @@ include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/ARM/AsmParser/Android.mk b/lib/Target/ARM/AsmParser/Android.mk
index e0587fd992..b86299190e 100644
--- a/lib/Target/ARM/AsmParser/Android.mk
+++ b/lib/Target/ARM/AsmParser/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -28,5 +25,3 @@ LOCAL_MODULE:= libLLVMARMAsmParser
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/ARM/AsmPrinter/Android.mk b/lib/Target/ARM/AsmPrinter/Android.mk
index 1a568eb6f8..e233d67320 100644
--- a/lib/Target/ARM/AsmPrinter/Android.mk
+++ b/lib/Target/ARM/AsmPrinter/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
arm_asm_printer_TBLGEN_TABLES := \
@@ -53,5 +50,3 @@ LOCAL_MODULE:= libLLVMARMAsmPrinter
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/ARM/Disassembler/Android.mk b/lib/Target/ARM/Disassembler/Android.mk
index ab5800c47b..9a8f7d874d 100644
--- a/lib/Target/ARM/Disassembler/Android.mk
+++ b/lib/Target/ARM/Disassembler/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -30,5 +27,3 @@ LOCAL_MODULE:= libLLVMARMDisassembler
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/ARM/TargetInfo/Android.mk b/lib/Target/ARM/TargetInfo/Android.mk
index 221af98dbf..8ef7ed9668 100644
--- a/lib/Target/ARM/TargetInfo/Android.mk
+++ b/lib/Target/ARM/TargetInfo/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
arm_target_info_TBLGEN_TABLES := \
@@ -49,5 +46,3 @@ LOCAL_MODULE:= libLLVMARMInfo
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/Android.mk b/lib/Target/Android.mk
index 99d013d4d1..8bf4340a2c 100644
--- a/lib/Target/Android.mk
+++ b/lib/Target/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
target_SRC_FILES := \
@@ -39,5 +36,3 @@ LOCAL_MODULE:= libLLVMTarget
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/X86/Android.mk b/lib/Target/X86/Android.mk
index 1e9d6cb6ef..701913c076 100644
--- a/lib/Target/X86/Android.mk
+++ b/lib/Target/X86/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the host only
@@ -48,5 +45,3 @@ include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/X86/AsmParser/Android.mk b/lib/Target/X86/AsmParser/Android.mk
index 4b8cd62325..0675ad0072 100644
--- a/lib/Target/X86/AsmParser/Android.mk
+++ b/lib/Target/X86/AsmParser/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -28,5 +25,3 @@ LOCAL_MODULE:= libLLVMX86AsmParser
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/X86/AsmPrinter/Android.mk b/lib/Target/X86/AsmPrinter/Android.mk
index 1fd9903b3c..055361cfc3 100644
--- a/lib/Target/X86/AsmPrinter/Android.mk
+++ b/lib/Target/X86/AsmPrinter/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -31,5 +28,3 @@ LOCAL_MODULE:= libLLVMX86AsmPrinter
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/X86/Disassembler/Android.mk b/lib/Target/X86/Disassembler/Android.mk
index 8d5b273deb..045eef84c4 100644
--- a/lib/Target/X86/Disassembler/Android.mk
+++ b/lib/Target/X86/Disassembler/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -28,5 +25,3 @@ LOCAL_MODULE:= libLLVMX86Disassembler
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Target/X86/TargetInfo/Android.mk b/lib/Target/X86/TargetInfo/Android.mk
index 9bf109cba5..53b3a0c020 100644
--- a/lib/Target/X86/TargetInfo/Android.mk
+++ b/lib/Target/X86/TargetInfo/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -25,5 +22,3 @@ LOCAL_MODULE:= libLLVMX86Info
include $(LLVM_HOST_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Transforms/IPO/Android.mk b/lib/Transforms/IPO/Android.mk
index c908a3086a..c5d4b976d2 100644
--- a/lib/Transforms/IPO/Android.mk
+++ b/lib/Transforms/IPO/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
transforms_ipo_SRC_FILES := \
@@ -49,5 +46,3 @@ LOCAL_MODULE:= libLLVMipo
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Transforms/InstCombine/Android.mk b/lib/Transforms/InstCombine/Android.mk
index 1894ce79ba..07825031cc 100644
--- a/lib/Transforms/InstCombine/Android.mk
+++ b/lib/Transforms/InstCombine/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
transforms_inst_combine_SRC_FILES := \
@@ -39,5 +36,3 @@ LOCAL_MODULE:= libLLVMInstCombine
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Transforms/Instrumentation/Android.mk b/lib/Transforms/Instrumentation/Android.mk
index 6623f9e386..0bca17e620 100644
--- a/lib/Transforms/Instrumentation/Android.mk
+++ b/lib/Transforms/Instrumentation/Android.mk
@@ -1,5 +1,3 @@
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
# For the host
@@ -15,5 +13,3 @@ LOCAL_MODULE:= libLLVMInstrumentation
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Transforms/Scalar/Android.mk b/lib/Transforms/Scalar/Android.mk
index 656deaff7a..a86d64fcda 100644
--- a/lib/Transforms/Scalar/Android.mk
+++ b/lib/Transforms/Scalar/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
transforms_scalar_SRC_FILES := \
@@ -55,5 +52,3 @@ LOCAL_MODULE:= libLLVMScalarOpts
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/Transforms/Utils/Android.mk b/lib/Transforms/Utils/Android.mk
index 3f3c6ba9c0..9fba091355 100644
--- a/lib/Transforms/Utils/Android.mk
+++ b/lib/Transforms/Utils/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
transforms_utils_SRC_FILES := \
@@ -51,5 +48,3 @@ LOCAL_MODULE:= libLLVMTransformUtils
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/lib/VMCore/Android.mk b/lib/VMCore/Android.mk
index 37cb8ebc35..8d35cc5b15 100644
--- a/lib/VMCore/Android.mk
+++ b/lib/VMCore/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
vmcore_SRC_FILES := \
@@ -64,5 +61,3 @@ LOCAL_MODULE:= libLLVMCore
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
-
-endif
diff --git a/llvm-device-build.mk b/llvm-device-build.mk
index 80d1f612fa..17532a0ebd 100644
--- a/llvm-device-build.mk
+++ b/llvm-device-build.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_CFLAGS := \
-D_GNU_SOURCE \
-D__STDC_LIMIT_MACROS \
@@ -62,5 +59,3 @@ $(hide) $(TBLGEN) \
-gen-$(strip $(1)) \
-o $@ $<
endef
-
-endif
diff --git a/llvm-gen-intrinsics.mk b/llvm-gen-intrinsics.mk
index d37d2e65d4..decccdd591 100644
--- a/llvm-gen-intrinsics.mk
+++ b/llvm-gen-intrinsics.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
# We treat Intrinsics.td as a very special target just like what lib/VMCore/Makefile does
INTRINSICTD := $(LLVM_ROOT_PATH)/include/llvm/Intrinsics.td
INTRINSICTDS := $(wildcard $(dir $(INTRINSICTD))/Intrinsics*.td)
@@ -19,5 +16,3 @@ ifeq ($(LOCAL_IS_HOST_MODULE),true)
else
$(call transform-device-td-to-out,intrinsic)
endif
-
-endif
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index ca2f258f3b..7160b521a2 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_CFLAGS := \
-D_GNU_SOURCE \
-D__STDC_LIMIT_MACROS \
@@ -20,6 +17,12 @@ LOCAL_CFLAGS := \
$(LOCAL_CFLAGS)
endif
+# force 32 bit code for sim build
+ifeq ($(TARGET_SIMULATOR),true)
+LOCAL_CFLAGS += -m32
+LOCAL_LDFLAGS += -m32
+endif
+
ifneq ($(REQUIRES_EH),1)
LOCAL_CFLAGS += -fno-exceptions
else
@@ -60,5 +63,3 @@ $(hide) $(TBLGEN) \
-gen-$(strip $(1)) \
-o $@ $<
endef
-
-endif
diff --git a/llvm-tblgen-rules.mk b/llvm-tblgen-rules.mk
index c346825c02..8ec1705b39 100644
--- a/llvm-tblgen-rules.mk
+++ b/llvm-tblgen-rules.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
###########################################################
## Commands for running tblgen to compile a td file
##########################################################
@@ -117,5 +114,3 @@ $(intermediates)/ARMGenDecoderTables.inc: $(tblgen_source_dir)/ARM.td $(TBLGEN)
endif
endif
-
-endif
diff --git a/llvm.mk b/llvm.mk
index 10bf06c5bf..b18107100b 100644
--- a/llvm.mk
+++ b/llvm.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
ifeq ($(LLVM_ROOT_PATH),)
$(error Must set variable LLVM_ROOT_PATH before including this! $(LOCAL_PATH))
endif
@@ -16,5 +13,3 @@ LLVM_TBLGEN_RULES_MK := $(LLVM_ROOT_PATH)/llvm-tblgen-rules.mk
CLANG_ROOT_PATH := $(LLVM_ROOT_PATH)/tools/clang
include $(CLANG_ROOT_PATH)/clang.mk
-
-endif
diff --git a/tblgen-rules.mk b/tblgen-rules.mk
index 7c1e525636..6e7bcf1824 100644
--- a/tblgen-rules.mk
+++ b/tblgen-rules.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
###########################################################
## Commands for running tblgen to compile a td file
##########################################################
@@ -114,5 +111,3 @@ $(intermediates)/ARMGenDecoderTables.inc: $(tblgen_source_dir)/ARM.td $(TBLGEN)
endif
endif
-
-endif
diff --git a/utils/TableGen/Android.mk b/utils/TableGen/Android.mk
index 8dfa698cda..8347d5eac8 100644
--- a/utils/TableGen/Android.mk
+++ b/utils/TableGen/Android.mk
@@ -1,6 +1,3 @@
-# Only use this on the device or emulator.
-ifeq ($(TARGET_ARCH),arm)
-
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
@@ -48,5 +45,3 @@ LOCAL_LDLIBS += -lpthread -lm -ldl
include $(LLVM_HOST_BUILD_MK)
include $(BUILD_HOST_EXECUTABLE)
-
-endif