]> granicus.if.org Git - llvm/commitdiff
[AArch64] Delete unused VariantKind in AArch64MCExpr
authorFangrui Song <maskray@google.com>
Tue, 28 May 2019 16:11:56 +0000 (16:11 +0000)
committerFangrui Song <maskray@google.com>
Tue, 28 May 2019 16:11:56 +0000 (16:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361844 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp
lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h

index 20676ebb61a28fabc1f5c78254f0b7f2ab4a2379..0a529321edc8f573e260637d1569b14153344f45 100644 (file)
@@ -79,8 +79,7 @@ StringRef AArch64MCExpr::getVariantKindName() const {
 }
 
 void AArch64MCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const {
-  if (getKind() != VK_NONE)
-    OS << getVariantKindName();
+  OS << getVariantKindName();
   Expr->print(OS, MAI);
 }
 
index 246060ace034b1bf4f4f31b35aceb6160a46510f..ec9c959116283a2a40bb79be80558d5d506622ee 100644 (file)
@@ -22,8 +22,6 @@ namespace llvm {
 class AArch64MCExpr : public MCTargetExpr {
 public:
   enum VariantKind {
-    VK_NONE     = 0x000,
-
     // Symbol locations specifying (roughly speaking) what calculation should be
     // performed to construct the final address for the relocated
     // symbol. E.g. direct, via the GOT, ...