diff options
author | Shih-wei Liao <sliao@google.com> | 2010-04-29 00:24:07 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2010-04-29 00:24:07 -0700 |
commit | a59a85f8dd03d52907019f1a4caaf7653b01b7d3 (patch) | |
tree | bf887e96b412f30a0f610ba86088f048be87a19c /lib/MC/MCParser | |
parent | 7abe37e4aee38cc79d91dd069a37d7e91d5bef53 (diff) | |
download | external_llvm-a59a85f8dd03d52907019f1a4caaf7653b01b7d3.zip external_llvm-a59a85f8dd03d52907019f1a4caaf7653b01b7d3.tar.gz external_llvm-a59a85f8dd03d52907019f1a4caaf7653b01b7d3.tar.bz2 |
For disassembler
Change-Id: I14e64ec4640cbeb57ac87473775e8ba8a7320b3f
Diffstat (limited to 'lib/MC/MCParser')
-rw-r--r-- | lib/MC/MCParser/Android.mk | 30 | ||||
-rw-r--r-- | lib/MC/MCParser/AsmLexer.cpp | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/lib/MC/MCParser/Android.mk b/lib/MC/MCParser/Android.mk new file mode 100644 index 0000000..1335362 --- /dev/null +++ b/lib/MC/MCParser/Android.mk @@ -0,0 +1,30 @@ +LOCAL_PATH:= $(call my-dir) + +mc_parser_SRC_FILES := \ + AsmLexer.cpp \ + AsmParser.cpp \ + MCAsmLexer.cpp \ + MCAsmParser.cpp \ + TargetAsmParser.cpp + +# For the host +# ===================================================== +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(mc_parser_SRC_FILES) + +LOCAL_MODULE:= libLLVMMCParser + +include $(LLVM_HOST_BUILD_MK) +include $(BUILD_HOST_STATIC_LIBRARY) + +# For the device +# ===================================================== +include $(CLEAR_VARS) + +LOCAL_SRC_FILES := $(mc_parser_SRC_FILES) + +LOCAL_MODULE:= libLLVMMCParser + +include $(LLVM_DEVICE_BUILD_MK) +include $(BUILD_STATIC_LIBRARY) diff --git a/lib/MC/MCParser/AsmLexer.cpp b/lib/MC/MCParser/AsmLexer.cpp index 1183312..7f9fe8a 100644 --- a/lib/MC/MCParser/AsmLexer.cpp +++ b/lib/MC/MCParser/AsmLexer.cpp @@ -15,6 +15,7 @@ #include "llvm/Support/SMLoc.h" #include "llvm/Support/MemoryBuffer.h" #include "llvm/MC/MCAsmInfo.h" +#include <ctype.h> #include <cerrno> #include <cstdio> #include <cstdlib> |