diff options
Diffstat (limited to 'llvm/lib/AsmParser/LLParser.h')
-rw-r--r-- | llvm/lib/AsmParser/LLParser.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.h b/llvm/lib/AsmParser/LLParser.h index dbbb97ab62a..96fb06a1f29 100644 --- a/llvm/lib/AsmParser/LLParser.h +++ b/llvm/lib/AsmParser/LLParser.h @@ -146,7 +146,7 @@ namespace llvm { Slots(Slots), BlockAddressPFS(nullptr) {} bool Run(); - bool parseStandaloneConstantValue(Constant *&C); + bool parseStandaloneConstantValue(Constant *&C, const SlotMapping *Slots); LLVMContext &getContext() { return Context; } @@ -159,6 +159,10 @@ namespace llvm { return Error(Lex.getLoc(), Msg); } + /// Restore the internal name and slot mappings using the mappings that + /// were created at an earlier parsing stage. + void restoreParsingState(const SlotMapping *Slots); + /// GetGlobalVal - Get a value with the specified name or ID, creating a /// forward reference record if needed. This can return null if the value /// exists but does not have the right type. |