Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewycky committed May 3, 2021
1 parent 32a56fa commit 18732e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compiler-llvm/src/object_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ where
{
let kind = match (reloc.kind(), reloc.size()) {
(object::RelocationKind::Absolute, 64) => RelocationKind::Abs8,
(object::RelocationKind::Elf(object::elf::R_X86_64_PC64), 0) => RelocationKind::X86PCRel8,
(object::RelocationKind::Elf(object::elf::R_X86_64_PC64), 0) => {
RelocationKind::X86PCRel8
}
_ => {
return Err(CompileError::Codegen(format!(
"unknown relocation {:?}",
Expand Down

0 comments on commit 18732e4

Please sign in to comment.