Android-x86
Fork
Faire un don

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-llvm: Commit

external/llvm


Commit MetaInfo

Révisionb5e3785b276e08e2c1e7a42b974a5a72422d717f (tree)
l'heure2019-10-05 16:09:52
AuteurMauro Rossi <issor.oruam@gmai...>
CommiterMauro Rossi

Message de Log

android: Bitstream: add support for libLLVMBitstreamReader

To avoid following building errors:

external/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp:570: error: undefined reference to 'llvm::BitstreamCursor::ReadBlockInfoBlock(bool)'
external/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp:747: error: undefined reference to 'llvm::BitstreamCursor::EnterSubBlock(unsigned int, unsigned int*)'
...
external/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp:974: error: undefined reference to 'llvm::BitstreamCursor::skipRecord(unsigned int)'
external/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp:819: error: undefined reference to 'llvm::BitstreamCursor::ReadAbbrevRecord()'
external/llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp:831: error: undefined reference to 'llvm::BitstreamCursor::readRecord(unsigned int, llvm::SmallVectorImpl<unsigned long long>&, llvm::StringRef*)'
...
external/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:6402: error: undefined reference to 'llvm::BitstreamCursor::skipRecord(unsigned int)'
external/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:6252: error: undefined reference to 'llvm::BitstreamCursor::EnterSubBlock(unsigned int, unsigned int*)'
external/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:6278: error: undefined reference to 'llvm::BitstreamCursor::readRecord(unsigned int, llvm::SmallVectorImpl<unsigned long long>&, llvm::StringRef*)'
...
external/llvm/lib/Bitcode/Reader/BitcodeReader.cpp:3041: error: undefined reference to 'llvm::BitstreamCursor::ReadBlockInfoBlock(bool)'
clang-6.0: error: linker command failed with exit code 1 (use -v to see invocation)

Change Summary

Modification

--- a/Android.bp
+++ b/Android.bp
@@ -241,6 +241,7 @@ cc_library_shared {
241241 "libLLVMBitReader",
242242 "libLLVMPasses",
243243 "libLLVMDemangle",
244+ "libLLVMBitstreamReader",
244245
245246 // post static libraries
246247 "libLLVMLTO",
--- /dev/null
+++ b/lib/Bitstream/Android.bp
@@ -0,0 +1 @@
1+subdirs = ["*"]
--- /dev/null
+++ b/lib/Bitstream/Reader/Android.bp
@@ -0,0 +1,7 @@
1+cc_library_static {
2+ name: "libLLVMBitstreamReader",
3+ defaults: [
4+ "llvm-lib-defaults",
5+ ],
6+ srcs: ["*.cpp"],
7+}
Afficher sur ancien navigateur de dépôt.