MCAsmParserUtils.h 978 B

123456789101112131415161718192021222324252627282930313233
  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. #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
  10. #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
  11. namespace llvm {
  12. class MCAsmParser;
  13. class MCExpr;
  14. class MCSymbol;
  15. class StringRef;
  16. namespace MCParserUtils {
  17. /// Parse a value expression and return whether it can be assigned to a symbol
  18. /// with the given name.
  19. ///
  20. /// On success, returns false and sets the Symbol and Value output parameters.
  21. bool parseAssignmentExpression(StringRef Name, bool allow_redef,
  22. MCAsmParser &Parser, MCSymbol *&Symbol,
  23. const MCExpr *&Value);
  24. } // namespace MCParserUtils
  25. } // namespace llvm
  26. #endif