LLVM 20.0.0git
|
Functions | |
bool | parseAssignmentExpression (StringRef Name, bool allow_redef, MCAsmParser &Parser, MCSymbol *&Symbol, const MCExpr *&Value) |
Parse a value expression and return whether it can be assigned to a symbol with the given name. | |
bool llvm::MCParserUtils::parseAssignmentExpression | ( | StringRef | Name, |
bool | allow_redef, | ||
MCAsmParser & | Parser, | ||
MCSymbol *& | Symbol, | ||
const MCExpr *& | Value | ||
) |
Parse a value expression and return whether it can be assigned to a symbol with the given name.
On success, returns false and sets the Symbol and Value output parameters.
Definition at line 6426 of file AsmParser.cpp.
References llvm::MCStreamer::emitValueToOffset(), llvm::MCAsmParser::Error(), llvm::MCAsmParser::getContext(), llvm::AsmToken::getLoc(), llvm::MCContext::getOrCreateSymbol(), llvm::MCAsmParser::getStreamer(), llvm::MCAsmParser::getTok(), llvm::MCContext::lookupSymbol(), Name, llvm::MCAsmParser::parseEOL(), llvm::MCAsmParser::parseExpression(), Sym, and llvm::MCAsmParser::TokError().