[llvm] 9c6abf0 - MCExpr: Remove unused VariantKind

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 24 09:30:40 PDT 2025


Author: Fangrui Song
Date: 2025-03-24T09:30:35-07:00
New Revision: 9c6abf02bf250da2615c1d37b8eaba299a5934a1

URL: https://github.com/llvm/llvm-project/commit/9c6abf02bf250da2615c1d37b8eaba299a5934a1
DIFF: https://github.com/llvm/llvm-project/commit/9c6abf02bf250da2615c1d37b8eaba299a5934a1.diff

LOG: MCExpr: Remove unused VariantKind

MCSymbolRefExpr::VariantKind is deprecated - many constants have been
moved to target-specific MCTargetExpr.

Added: 
    

Modified: 
    llvm/include/llvm/MC/MCExpr.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/MC/MCExpr.h b/llvm/include/llvm/MC/MCExpr.h
index ba768eb67ea7a..5bfbd2d9f8e71 100644
--- a/llvm/include/llvm/MC/MCExpr.h
+++ b/llvm/include/llvm/MC/MCExpr.h
@@ -197,14 +197,8 @@ class MCSymbolRefExpr : public MCExpr {
     VK_None,
 
     VK_GOT,
-    VK_GOTOFF,
     VK_GOTPCREL,
-    VK_GOTTPOFF,
     VK_PLT,
-    VK_TLSGD,
-    VK_TLSLD,
-    VK_TLSLDM,
-    VK_TPOFF,
     VK_TLVP,    // Mach-O thread local variable relocations
     VK_TLVPPAGE,
     VK_TLVPPAGEOFF,


        


More information about the llvm-commits mailing list