[llvm] [LoongArch] Add relaxDwarfLineAddr and relaxDwarfCFA to handle the mutable label diff in dwarfinfo (PR #77728)

Lu Weining via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 14 22:45:46 PST 2024


================
@@ -879,9 +885,11 @@ uint64_t resolveRelocation(RelocationResolver Resolver, const RelocationRef &R,
 
       if (GetRelSectionType() == ELF::SHT_RELA) {
         Addend = getELFAddend(R);
-        // RISCV relocations use both LocData and Addend.
+        // RISCV, LoongArch relocations use both LocData and Addend.
----------------
SixWeining wrote:

How about "LoongArch and RISCV ..." ?

And sort alphabetically:
```
        if (Obj->getArch() != Triple::loongarch32 &&
            Obj->getArch() != Triple::loongarch6464 &&
            Obj->getArch() != Triple::riscv32 &&
            Obj->getArch() != Triple::riscv64)
```


https://github.com/llvm/llvm-project/pull/77728


More information about the llvm-commits mailing list