[llvm] r361844 - [AArch64] Delete unused VariantKind in AArch64MCExpr
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue May 28 09:11:56 PDT 2019
Author: maskray
Date: Tue May 28 09:11:56 2019
New Revision: 361844
URL: http://llvm.org/viewvc/llvm-project?rev=361844&view=rev
Log:
[AArch64] Delete unused VariantKind in AArch64MCExpr
Modified:
llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp
llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h
Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp?rev=361844&r1=361843&r2=361844&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.cpp Tue May 28 09:11:56 2019
@@ -79,8 +79,7 @@ StringRef AArch64MCExpr::getVariantKindN
}
void AArch64MCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const {
- if (getKind() != VK_NONE)
- OS << getVariantKindName();
+ OS << getVariantKindName();
Expr->print(OS, MAI);
}
Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h?rev=361844&r1=361843&r2=361844&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCExpr.h Tue May 28 09:11:56 2019
@@ -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, ...
More information about the llvm-commits
mailing list