[llvm] 01b097a - Fix bad merge the removed switch case

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 20 10:59:02 PDT 2021


Author: Geoffrey Martin-Noble
Date: 2021-09-20T10:58:58-07:00
New Revision: 01b097afd0eae593b3a11a88a34e8f50e845d3e7

URL: https://github.com/llvm/llvm-project/commit/01b097afd0eae593b3a11a88a34e8f50e845d3e7
DIFF: https://github.com/llvm/llvm-project/commit/01b097afd0eae593b3a11a88a34e8f50e845d3e7.diff

LOG: Fix bad merge the removed switch case

When https://reviews.llvm.org/D109520 was landed, it reverted the addition of this switch
case added in https://reviews.llvm.org/D109293. This caused `-Wswitch` failures (and
presumably broke the functionality added in the latter patch).

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp b/llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
index 034b1d98b4c8..0a50f40ff9eb 100644
--- a/llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
@@ -327,6 +327,10 @@ class ELFLinkGraphBuilder_x86_64 : public ELFLinkGraphBuilder<object::ELF64LE> {
       Addend = 0;
       break;
     }
+    case PCRel32TLV: {
+      Kind = x86_64::RequestTLSDescInGOTAndTransformToDelta32;
+      break;
+    }
     case PCRel32GOTLoadRelaxable: {
       Kind = x86_64::RequestGOTAndTransformToPCRel32GOTLoadRelaxable;
       Addend = 0;


        


More information about the llvm-commits mailing list