aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-04-19Make slang able to take target API level 27 and 28android-9.0.0_r47android-9.0.0_r46android-9.0.0_r45android-9.0.0_r44android-9.0.0_r43android-9.0.0_r42android-9.0.0_r41android-9.0.0_r40android-9.0.0_r39android-9.0.0_r38android-9.0.0_r37android-9.0.0_r36android-9.0.0_r35android-9.0.0_r34android-9.0.0_r33android-9.0.0_r32android-9.0.0_r31android-9.0.0_r30android-9.0.0_r22android-9.0.0_r21android-9.0.0_r20android-9.0.0_r19android-9.0.0_r16android-9.0.0_r12android-9.0.0_r11pie-qpr3-s1-releasepie-qpr3-releasepie-qpr3-b-releasepie-qpr2-releasepie-qpr1-s3-releasepie-qpr1-s2-releasepie-qpr1-s1-releasepie-qpr1-releasepie-dr1-releasepie-dr1-devpie-devpie-b4s4-releasepie-b4s4-devMiao Wang
- Add enums corresponding O-MR1 and P. - Internally, treat them as N since no new APIs added. Bug: 72969487 Test: mm Test: llvm-rs-cc can take target api 27 and 28, and generated code works on N emulator and ToT walleye. Change-Id: I37979fe359aee117229182cdd198f5305dd22cd1
2018-02-20Fix a memory leakGeorge Burgess IV
Analyzer complaint: frameworks/compile/slang/slang.cpp:336:12: warning: Potential leak of memory pointed to by 'OS' This is a bit tricky: llvm::tool_output_file's ctor might write a failure value to EC. If so, we'd take the `if (EC) return false;` branch in Slang::setOutput, and fail to free `OS`. Using a unique_ptr instead fixes all of our problems. This also removes a nullptr check; `new` without `std::nothrow` can't return null, so the null check was unnecessary. Bug: None Test: Ran the static analyzer. No complaints about leaky memory. Change-Id: I22c865ea4ef8caf1d8c3b14939a6d28850f587c4
2017-11-15Merge remote-tracking branch 'goog/stage-aosp-master' into HEADXin Li
am: eeaf7830c8 Change-Id: I14842abc0bd9265acdd2776ef8d599628cb7ee04
2017-11-14Merge remote-tracking branch 'goog/stage-aosp-master' into HEADXin Li
Change-Id: I7334a7d4f7e14bcae80302156ac9123c8fbe2485
2017-11-13Merge commit '1f9e95650b7fae167d99d0ac4abd67a44d62241a' into HEADandroid-wear-8.0.0_r1android-p-preview-1android-o-mr1-iot-preview-8android-o-mr1-iot-preview-7o-mr1-iot-preview-8o-mr1-iot-preview-7Xin Li
Change-Id: Ic109be4aa648c52ab8ec5e4d529f769fbaad3527
2017-11-09Merge "Make slang depend on lib{LLVM,clang}_android.so" am: 8eafb69d6c am: ↵Pirama Arumuga Nainar
89d5e3ac60 am: 70b4d018e8 Change-Id: Ibacdb33c46ac278e192bb9813a9316871c61bad7
2017-11-09Merge "Make slang depend on lib{LLVM,clang}_android.so" am: 8eafb69d6cPirama Arumuga Nainar
am: 89d5e3ac60 Change-Id: I827cec432160823898892b0862196c5f7185baee
2017-11-09Merge "Make slang depend on lib{LLVM,clang}_android.so"Pirama Arumuga Nainar
am: 8eafb69d6c Change-Id: I3a8978e090aed8d88f22a9d25de96c446a6f7e7e
2017-11-09Merge "Make slang depend on lib{LLVM,clang}_android.so"android-o-mr1-iot-preview-6o-mr1-iot-preview-6Pirama Arumuga Nainar
2017-11-06Make slang depend on lib{LLVM,clang}_android.soPirama Arumuga Nainar
Bug: http://b/64121881 The modules built in the Android tree are now named libLLVM_android.so and libclang_android.so. Test: aosp_marlin checkbuild with FORCE_BUILD_LLVM_COMPONENTS set and unset. Change-Id: I581b85045a744a712e5f667b5d9035bd51e7c491
2017-10-17Merge "Mark libraries required by libbcinfo as vendor_available" am: ↵Jae Shin
f57105d9a5 am: 9f03d2447a am: ad8121015c -s ours am: 1f9e95650b -s ours Change-Id: Iaf0838b81021b6d6380438bb11107bfff1b14911
2017-10-17Merge "Mark libraries required by libbcinfo as vendor_available" am: ↵Jae Shin
f57105d9a5 am: 9f03d2447a am: ad8121015c -s ours Change-Id: I9e8fe7ce8f693f9a12833f77785742f0933a123f
2017-10-17Merge "Mark libraries required by libbcinfo as vendor_available" am: f57105d9a5Jae Shin
am: 9f03d2447a Change-Id: Id0fcbf81f4aa4d5c96da8cf8e788e29cbd8955a6
2017-10-17Merge "Mark libraries required by libbcinfo as vendor_available"Jae Shin
am: f57105d9a5 Change-Id: I805a5ef18f293fe16de85c72c4b490f6e5a574fd
2017-10-17Merge "Mark libraries required by libbcinfo as vendor_available"Jae Shin
2017-10-16Mark libraries required by libbcinfo as vendor_availableJiyong Park
libLLVMBitWriter_3_2 and libStripUnkAttr are used by libbcinfo, which is a vndk-sp library. Mark them as vendor_available:true so that they are available when building libbcinfo.so Bug: 64425518 Bug: 64395154 Test: BOARD_VNDK_VERSION=current m -j libbcinfo.so Merged-In: I7a59aabcae0207d9d4a19df11c89d0008ddbb039 Change-Id: I7a59aabcae0207d9d4a19df11c89d0008ddbb039 (cherry picked from commit 472a71534ac82a590c3ca8b390a9298c7f32057d)
2017-09-29Merge "Remove default libraries" am: b20cc6ffbc am: 7368b91323 am: ed443ee88bDan Willemsen
am: 744a38410d Change-Id: I93b7bfabc9bd3a1b93a2e03a3ca45eeb910e9695
2017-09-29Merge "Remove default libraries" am: b20cc6ffbc am: 7368b91323Dan Willemsen
am: ed443ee88b Change-Id: Iecc178fbf24c6f4f2a055c31b5cd67aa02175225
2017-09-29Merge "Remove default libraries" am: b20cc6ffbcDan Willemsen
am: 7368b91323 Change-Id: I8ae8ad0744bbe693c4718596df366eb0679336ea
2017-09-29Merge "Remove default libraries"Dan Willemsen
am: b20cc6ffbc Change-Id: If09c8db176fe709c05637054f76085cc38116de9
2017-09-29Merge "Remove default libraries"Treehugger Robot
2017-09-28Remove default librariesDan Willemsen
libdl is part of system_shared_libs now. -ldl -lpthread -lm are now defaults for host_ldlibs on Linux and Darwin. -lrt is a default for host_ldlibs on Linux. Test: m host Change-Id: I5f7b80be0e5990d86d73739cb69e0bbcc1282a50 Exempt-From-Owner-Approval: build system cleanup
2017-08-31Merge changes Ib4f6b1b4,Iac340c25 am: 4c0eb48014 am: 29f2fedccd am: 3627f9adedDavid Gross
am: e85fa64f78 Change-Id: I469d1fff56ac81da34d81dec2b7b8bc1996b5c21
2017-08-31Merge changes Ib4f6b1b4,Iac340c25 am: 4c0eb48014 am: 29f2fedccdDavid Gross
am: 3627f9aded Change-Id: Iadafcee4a208bb8c8b7c83941c8c298bfd10d76e
2017-08-31Merge changes Ib4f6b1b4,Iac340c25 am: 4c0eb48014David Gross
am: 29f2fedccd Change-Id: Ide406a453d2e513654fc56b27042a195f35ec50e
2017-08-31Merge changes Ib4f6b1b4,Iac340c25David Gross
am: 4c0eb48014 Change-Id: I3110b9c77f0f96a7db446b9d60e8081f7ea602a3
2017-08-31Merge changes Ib4f6b1b4,Iac340c25android-o-mr1-preview-2android-o-mr1-preview-1David Gross
* changes: Workaround for outstanding LLVM assertions: Modify test cases. Fix some LLVM assertions and add workarounds for others.
2017-08-30Workaround for outstanding LLVM assertions: Modify test cases.David Gross
This addresses problems that occur only with FORCE_BUILD_LLVM_DISABLE_NDEBUG=true. Modify test cases to work around http://b/65210157 temporary fix, removing pieces of the test cases). Bug: 65210157 Test: with FORCE_BUILD_LLVM_DISABLE_NDEBUG=true, ran the modified test cases Change-Id: Ib4f6b1b493b95b4fe8b3a7b3f92ee608fe239696
2017-08-30Fix some LLVM assertions and add workarounds for others.David Gross
This addresses problems that occur only with FORCE_BUILD_LLVM_DISABLE_NDEBUG=true. (1) Modify ReflectionState::canon() to no longer put empty strings in StringSet, which was triggering an assertion. (2) Modify test cases to work around http://b/62295904 (safe permanent fix, adding a dummy use of some parameters). Bug: 32780232 Bug: 20260865 Bug: 21597073 Bug: 62295904 Test: with FORCE_BUILD_LLVM_DISABLE_NDEBUG=true, ran slang/tests and built RsTest Change-Id: Iac340c25616354d973968b48a3923d2af86c32d3
2017-08-14Mark libraries required by libbcinfo as vendor_available am: 472a71534aJiyong Park
am: 481ffecdf5 Change-Id: I29ce526e7f98100a0b200d81438691668b63e48f
2017-08-14Mark libraries required by libbcinfo as vendor_availableJiyong Park
am: 472a71534a Change-Id: I01dc63c233d23566e799b400df6a8a3d2959acd0
2017-08-11Mark libraries required by libbcinfo as vendor_availableoreo-mr1-devJiyong Park
libLLVMBitWriter_3_2 and libStripUnkAttr are used by libbcinfo, which is a vndk-sp library. Mark them as vendor_available:true so that they are available when building libbcinfo.so Bug: 64425518 Test: BOARD_VNDK_VERSION=current m -j libbcinfo.so Change-Id: I7a59aabcae0207d9d4a19df11c89d0008ddbb039
2017-08-07Fix build error: unused variable 'BoringBits' am: 83cb31377f am: 28d3c76da6 ↵David Gross
-s ours am: e699f05f83 -s ours am: f076448808 -s ours Change-Id: I702fb20f08db8021d2d89cd646341ff7d91251eb
2017-08-07Improve Java reflection for 32-bit versus 64-bit differences. am: 53f1c10388 ↵David Gross
-s ours am: 37ffc4c35a -s ours am: a3db6c8552 -s ours am: 43d466c9f0 -s ours Change-Id: Ia4d84b4beb1b57f3f5b7472899f8a9cd40b547f7
2017-08-07Record SourceLocation in exportables. am: deb40a60d5 -s ours am: aeb2eb6438 ↵David Gross
-s ours am: 6af4a3dcc9 -s ours am: 9f0604b3c5 -s ours Change-Id: Id93a96ddbeac3e4ce54e5c557f86fc185cb0dfde
2017-08-07Move GetTypeName() into class RSReflectionJava. am: a66d850aed -s ours am: ↵David Gross
9d5d0b8eb8 -s ours am: fd6a851540 -s ours am: ee110aa759 -s ours Change-Id: Iec0951592de889c77c674baa0140ae032246ba21
2017-08-07Make RSContext::Report*() methods const. am: c6e3842c52 am: 19e65a09bb am: ↵David Gross
b17d22a7c3 am: bd3ff06239 Change-Id: Ifeab87a91b2b005c66865420a62afddd77989a99
2017-08-07Fix build error: unused variable 'BoringBits' am: 83cb31377f am: 28d3c76da6 ↵David Gross
-s ours am: 3179963abc -s ours am: 1fb76ed477 -s ours Change-Id: I4385b0e9e3897b8fb5422455bfdd48fbffd5c655
2017-08-07Improve Java reflection for 32-bit versus 64-bit differences. am: 53f1c10388 ↵David Gross
-s ours am: 37ffc4c35a -s ours am: 0fa9410bb3 -s ours am: 207c0b464d -s ours Change-Id: I9c9b1682f4785e4e20ea3e2e7849acd0b992999e
2017-08-07Record SourceLocation in exportables. am: deb40a60d5 -s ours am: aeb2eb6438 ↵David Gross
-s ours am: aa44ddf081 -s ours am: 921d1daa5f -s ours Change-Id: I6b3e73352a4ed1e31cc7d66f44e668caed8cb1ab
2017-08-07Move GetTypeName() into class RSReflectionJava. am: a66d850aed -s ours am: ↵David Gross
9d5d0b8eb8 -s ours am: d413b9f350 -s ours am: b4b07ca333 -s ours Change-Id: Ie1fb5b83b71309e39cd6377b959709cd75d48039
2017-08-07Make RSContext::Report*() methods const. am: c6e3842c52 am: 19e65a09bb am: ↵David Gross
1a8ad64351 am: 5afb46decb Change-Id: I91c291ae9a3d2c93fe7b62a8fc7ac5134e8b5e51
2017-08-07Fix build error: unused variable 'BoringBits' am: 83cb31377f am: 28d3c76da6 ↵David Gross
-s ours am: e699f05f83 -s ours Change-Id: I1e798cc8930b4d6963505c8e21b6eff2a4f2693a
2017-08-07Improve Java reflection for 32-bit versus 64-bit differences. am: 53f1c10388 ↵David Gross
-s ours am: 37ffc4c35a -s ours am: a3db6c8552 -s ours Change-Id: I8c623fa56f4bc4bfe10978d7b022823739fd4f3a
2017-08-07Record SourceLocation in exportables. am: deb40a60d5 -s ours am: aeb2eb6438 ↵David Gross
-s ours am: 6af4a3dcc9 -s ours Change-Id: Id74e09bca6ee47ef36a37ab9e61f2a85e75ff8e9
2017-08-07Move GetTypeName() into class RSReflectionJava. am: a66d850aed -s ours am: ↵David Gross
9d5d0b8eb8 -s ours am: fd6a851540 -s ours Change-Id: If91e5f6f64c72f4c25fe504c297bd33dcadd6889
2017-08-07Make RSContext::Report*() methods const. am: c6e3842c52 am: 19e65a09bbDavid Gross
am: b17d22a7c3 Change-Id: Ie8bc329d3e356e73d1522627dbe996bdfe22d708
2017-08-07Fix build error: unused variable 'BoringBits' am: 83cb31377f am: 28d3c76da6 ↵David Gross
-s ours am: 3179963abc -s ours Change-Id: Ie6ed8504b5cfa9180e228bd84aab19963af1c227
2017-08-07Improve Java reflection for 32-bit versus 64-bit differences. am: 53f1c10388 ↵David Gross
-s ours am: 37ffc4c35a -s ours am: 0fa9410bb3 -s ours Change-Id: I86d79ede45dac04ede718c875f2ae97fb9a9e751
2017-08-07Record SourceLocation in exportables. am: deb40a60d5 -s ours am: aeb2eb6438 ↵David Gross
-s ours am: aa44ddf081 -s ours Change-Id: I96f824d6394f45a5fd60e68a51d055d579d42d75