diff options
| author | 2017-05-17 18:47:16 +0000 | |
|---|---|---|
| committer | 2017-05-17 18:47:18 +0000 | |
| commit | c1ff6bf32443ef79b0db30b10a08efbfa92420c4 (patch) | |
| tree | 99cc8c5087526008da5fe137ebc388a332c7484b | |
| parent | aad63d06328e745a7f13e812bf41676274aa8f49 (diff) | |
| parent | 00916b9eb0d83f333a00d7c8b839a62aed967857 (diff) | |
Merge "X86: Fix LoadString/Class for non-PIC boot image."
| -rw-r--r-- | compiler/optimizing/code_generator_x86.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/compiler/optimizing/code_generator_x86.cc b/compiler/optimizing/code_generator_x86.cc index aceeefb216..4a279d8de1 100644 --- a/compiler/optimizing/code_generator_x86.cc +++ b/compiler/optimizing/code_generator_x86.cc @@ -4633,12 +4633,7 @@ void CodeGeneratorX86::GenerateVirtualCall(HInvokeVirtual* invoke, Location temp void CodeGeneratorX86::RecordBootStringPatch(HLoadString* load_string) { DCHECK(GetCompilerOptions().IsBootImage()); - HX86ComputeBaseMethodAddress* address = nullptr; - if (GetCompilerOptions().GetCompilePic()) { - address = load_string->InputAt(0)->AsX86ComputeBaseMethodAddress(); - } else { - DCHECK_EQ(load_string->InputCount(), 0u); - } + HX86ComputeBaseMethodAddress* address = load_string->InputAt(0)->AsX86ComputeBaseMethodAddress(); string_patches_.emplace_back(address, load_string->GetDexFile(), load_string->GetStringIndex().index_); @@ -4646,12 +4641,7 @@ void CodeGeneratorX86::RecordBootStringPatch(HLoadString* load_string) { } void CodeGeneratorX86::RecordBootTypePatch(HLoadClass* load_class) { - HX86ComputeBaseMethodAddress* address = nullptr; - if (GetCompilerOptions().GetCompilePic()) { - address = load_class->InputAt(0)->AsX86ComputeBaseMethodAddress(); - } else { - DCHECK_EQ(load_class->InputCount(), 0u); - } + HX86ComputeBaseMethodAddress* address = load_class->InputAt(0)->AsX86ComputeBaseMethodAddress(); boot_image_type_patches_.emplace_back(address, load_class->GetDexFile(), load_class->GetTypeIndex().index_); |