diff options
author | 2025-02-05 18:23:42 +0000 | |
---|---|---|
committer | 2025-02-11 11:24:55 -0800 | |
commit | 9dd0dc2b8997caa4abce1923177ff3951a237883 (patch) | |
tree | 81be25f389cd659b2d2a0f5cf90f44cf2ea098c0 /dex2oat/dex2oat.cc | |
parent | ac94fdd1de99bd059535f5ec562996eddcc227b4 (diff) |
Remove more dead code for ELF file.
`writable` is always false. `program_header_only` is always true except
for in some tests.
The code that obtains information through ElfFile with
`program_header_only=true` in tests are replaced by code that uses
libelf.
Bug: 377474232
Bug: 6527146
Test: art/test.py --host -g
Change-Id: Icc9b4dbae612a90f54b50e090e191fad0a19f709
Diffstat (limited to 'dex2oat/dex2oat.cc')
-rw-r--r-- | dex2oat/dex2oat.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc index a8d3d9346c..24bd112aef 100644 --- a/dex2oat/dex2oat.cc +++ b/dex2oat/dex2oat.cc @@ -1270,8 +1270,7 @@ class Dex2Oat final { if (!input_vdex_.empty()) { std::string error_msg; input_vdex_file_ = VdexFile::Open(input_vdex_, - /* writable */ false, - /* low_4gb */ false, + /*low_4gb=*/false, &error_msg); } @@ -1321,8 +1320,7 @@ class Dex2Oat final { input_vdex_file_ = VdexFile::Open(input_vdex_fd_, s.st_size, "vdex", - /* writable */ false, - /* low_4gb */ false, + /*low_4gb=*/false, &error_msg); // If there's any problem with the passed vdex, just warn and proceed // without it. |