mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-26 19:36:28 +00:00
Fix wrong formatting in lld introduced in r286561 (NFC)
Pointed out by Davide. llvm-svn: 286649
This commit is contained in:
parent
c1d52e5c53
commit
16e25c8d4c
@ -540,7 +540,7 @@ llvm::Error ArchHandler_arm::getReferenceInfo(
|
||||
// Instruction contains branch to addend.
|
||||
displacement = getDisplacementFromThumbBranch(instruction, fixupAddress);
|
||||
*addend = fixupAddress + 4 + displacement;
|
||||
return llvm::Error::success();
|
||||
return llvm::Error::success();
|
||||
case ARM_THUMB_RELOC_BR22 | rPcRel | rLength4:
|
||||
// ex: bl _foo (and _foo is defined)
|
||||
if ((instruction & 0xD000F800) == 0x9000F000)
|
||||
|
@ -389,7 +389,7 @@ llvm::Error ArchHandler_arm64::getReferenceInfo(
|
||||
if (auto ec = atomFromSymbolIndex(reloc.symbol, target))
|
||||
return ec;
|
||||
*addend = 0;
|
||||
return llvm::Error::success();
|
||||
return llvm::Error::success();
|
||||
case ARM64_RELOC_PAGE21 | rPcRel | rExtern | rLength4:
|
||||
// ex: adrp x1, _foo@PAGE
|
||||
*kind = page21;
|
||||
|
@ -382,7 +382,7 @@ ArchHandler_x86_64::getReferenceInfo(const Relocation &reloc,
|
||||
if (auto ec = atomFromSymbolIndex(reloc.symbol, target))
|
||||
return ec;
|
||||
*addend = *(const little32_t *)fixupContent;
|
||||
return llvm::Error::success();
|
||||
return llvm::Error::success();
|
||||
case ripRel32Minus1:
|
||||
if (auto ec = atomFromSymbolIndex(reloc.symbol, target))
|
||||
return ec;
|
||||
|
@ -134,7 +134,7 @@ private:
|
||||
for (const GOTEntryAtom *slot : entries)
|
||||
mergedFile.addAtom(*slot);
|
||||
|
||||
return llvm::Error::success();
|
||||
return llvm::Error::success();
|
||||
}
|
||||
|
||||
bool shouldReplaceTargetWithGOTAtom(const Atom *target, bool canBypassGOT) {
|
||||
|
@ -985,7 +985,7 @@ llvm::Error Util::getSymbolTableRegion(const DefinedAtom* atom,
|
||||
case Atom::scopeTranslationUnit:
|
||||
scope = 0;
|
||||
inGlobalsRegion = false;
|
||||
return llvm::Error::success();
|
||||
return llvm::Error::success();
|
||||
case Atom::scopeLinkageUnit:
|
||||
if ((_ctx.exportMode() == MachOLinkingContext::ExportMode::whiteList) &&
|
||||
_ctx.exportSymbolNamed(atom->name())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user