AsmParser: Save and restore the parsing state for types using SlotMapping.
[oota-llvm.git] / include / llvm / AsmParser / Parser.h
index 9fe33603bc66057302079e6c5d0553ae5d7fe6f1..96a15c1ec45c3bd383681bb22a06aaef7ac54229 100644 (file)
@@ -85,8 +85,11 @@ bool parseAssemblyInto(MemoryBufferRef F, Module &M, SMDiagnostic &Err,
 /// The constant value can be any LLVM constant, including a constant
 /// expression.
 ///
+/// \param Slots The optional slot mapping that will restore the parsing state
+/// of the module.
 /// \return null on error.
-Constant *parseConstantValue(StringRef Asm, SMDiagnostic &Err, const Module &M);
+Constant *parseConstantValue(StringRef Asm, SMDiagnostic &Err, const Module &M,
+                             const SlotMapping *Slots = nullptr);
 
 } // End llvm namespace