We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 002af0c commit 6314d5aCopy full SHA for 6314d5a
llvm/lib/MC/MCInst.cpp
@@ -68,15 +68,17 @@ bool MCOperand::isBareSymbolRef() const {
68
}
69
70
bool MCOperand::isSimpleSymbolRef(MCExpr::Spec &Specifier) const {
71
- assert(isExpr() && "isBareSymbolRef expects only expressions");
+ assert(isExpr() && "isSimpleSymbolRef expects only expressions");
72
const MCExpr *Expr = getExpr();
73
MCExpr::ExprKind Kind = getExpr()->getKind();
74
75
switch (Kind) {
76
case MCExpr::Binary:
77
case MCExpr::Unary:
78
case MCExpr::Constant:
79
+ break;
80
case MCExpr::Target:
81
+ // It's not clear this is right, does MCTargetExpr need another virtual method?
82
break;
83
case MCExpr::SymbolRef:
84
Specifier = cast<MCSymbolRefExpr>(Expr)->getSpecifier();
0 commit comments