From: Fangrui Song Date: Tue, 28 May 2019 16:11:56 +0000 (+0000) Subject: [AArch64] Delete unused VariantKind in AArch64MCExpr X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e90aeea9bf4b1904c942a7171a49d0c3569d391;p=llvm [AArch64] Delete unused VariantKind in AArch64MCExpr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361844 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp b/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp index 20676ebb61a..0a529321edc 100644 --- a/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp +++ b/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp @@ -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); } diff --git a/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h b/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h index 246060ace03..ec9c9591162 100644 --- a/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h +++ b/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h @@ -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, ...