[llvm-symbolizer] Reverting r250067
[oota-llvm.git] / include / llvm / MC / MCParser / MCAsmParserUtils.h
1 //===------ llvm/MC/MCAsmParserUtils.h - Asm Parser Utilities ---*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
11 #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
12
13 namespace llvm {
14
15 class MCAsmParser;
16 class MCExpr;
17 class MCSymbol;
18 class StringRef;
19
20 namespace MCParserUtils {
21
22 /// Parse a value expression and return whether it can be assigned to a symbol
23 /// with the given name.
24 ///
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);
29
30 } // namespace MCParserUtils
31 } // namespace llvm
32
33 #endif