MCAsmParserUtils.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- llvm/MC/MCAsmParserUtils.h - Asm Parser Utilities --------*- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
  14. #define LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
  15. namespace llvm {
  16. class MCAsmParser;
  17. class MCExpr;
  18. class MCSymbol;
  19. class StringRef;
  20. namespace MCParserUtils {
  21. /// Parse a value expression and return whether it can be assigned to a symbol
  22. /// with the given name.
  23. ///
  24. /// On success, returns false and sets the Symbol and Value output parameters.
  25. bool parseAssignmentExpression(StringRef Name, bool allow_redef,
  26. MCAsmParser &Parser, MCSymbol *&Symbol,
  27. const MCExpr *&Value);
  28. } // namespace MCParserUtils
  29. } // namespace llvm
  30. #endif // LLVM_MC_MCPARSER_MCASMPARSERUTILS_H
  31. #ifdef __GNUC__
  32. #pragma GCC diagnostic pop
  33. #endif