1 //===------ llvm/MC/MCAsmParserUtils.h - Asm Parser Utilities ---*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
11 #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
20 namespace MCParserUtils {
22 /// Parse a value expression and return whether it can be assigned to a symbol
23 /// with the given name.
25 /// On success, returns false and sets the Symbol and Value output parameters.
26 bool parseAssignmentExpression(StringRef Name, bool allow_redef,
27 MCAsmParser &Parser, MCSymbol *&Symbol,
28 const MCExpr *&Value);
30 } // namespace MCParserUtils