Skip to content

Commit 448a79d

Browse files
committed
[AArch64] Delete unused VariantKind in AArch64MCExpr
llvm-svn: 361844
1 parent 561fcc0 commit 448a79d

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ StringRef AArch64MCExpr::getVariantKindName() const {
7979
}
8080

8181
void AArch64MCExpr::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const {
82-
if (getKind() != VK_NONE)
83-
OS << getVariantKindName();
82+
OS << getVariantKindName();
8483
Expr->print(OS, MAI);
8584
}
8685

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

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ namespace llvm {
2222
class AArch64MCExpr : public MCTargetExpr {
2323
public:
2424
enum VariantKind {
25-
VK_NONE = 0x000,
26-
2725
// Symbol locations specifying (roughly speaking) what calculation should be
2826
// performed to construct the final address for the relocated
2927
// symbol. E.g. direct, via the GOT, ...

0 commit comments

Comments
 (0)