mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Implement cfi_restore. Patch by Brian Anderson!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -301,6 +301,8 @@ public:
|
||||
&GenericAsmParser::ParseDirectiveCFIRestoreState>(".cfi_restore_state");
|
||||
AddDirectiveHandler<
|
||||
&GenericAsmParser::ParseDirectiveCFISameValue>(".cfi_same_value");
|
||||
AddDirectiveHandler<
|
||||
&GenericAsmParser::ParseDirectiveCFIRestore>(".cfi_restore");
|
||||
AddDirectiveHandler<
|
||||
&GenericAsmParser::ParseDirectiveCFIEscape>(".cfi_escape");
|
||||
|
||||
@@ -336,6 +338,7 @@ public:
|
||||
bool ParseDirectiveCFIRememberState(StringRef, SMLoc DirectiveLoc);
|
||||
bool ParseDirectiveCFIRestoreState(StringRef, SMLoc DirectiveLoc);
|
||||
bool ParseDirectiveCFISameValue(StringRef, SMLoc DirectiveLoc);
|
||||
bool ParseDirectiveCFIRestore(StringRef, SMLoc DirectiveLoc);
|
||||
bool ParseDirectiveCFIEscape(StringRef, SMLoc DirectiveLoc);
|
||||
|
||||
bool ParseDirectiveMacrosOnOff(StringRef, SMLoc DirectiveLoc);
|
||||
@@ -2815,6 +2818,19 @@ bool GenericAsmParser::ParseDirectiveCFISameValue(StringRef IDVal,
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveCFIRestore
|
||||
/// ::= .cfi_restore register
|
||||
bool GenericAsmParser::ParseDirectiveCFIRestore(StringRef IDVal,
|
||||
SMLoc DirectiveLoc) {
|
||||
int64_t Register = 0;
|
||||
if (ParseRegisterOrRegisterNumber(Register, DirectiveLoc))
|
||||
return true;
|
||||
|
||||
getStreamer().EmitCFIRestore(Register);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
/// ParseDirectiveCFIEscape
|
||||
/// ::= .cfi_escape expression[,...]
|
||||
bool GenericAsmParser::ParseDirectiveCFIEscape(StringRef IDVal,
|
||||
|
Reference in New Issue
Block a user