Take BoringSSL f3cc7a3: perlasm/x86_64-xlate.pl: fix pair of typo-bugs in the new cfi_directive.

This commit is contained in:
Brian Smith 2017-03-27 11:53:54 -10:00
commit 4c4babe6ad

View File

@ -628,7 +628,7 @@ my %globals;
my $self = {};
my $ret;
if ($$line =~ s/^\s*\.cfi_(\w+)\s+//) {
if ($$line =~ s/^\s*\.cfi_(\w+)\s*//) {
bless $self,$class;
$ret = $self;
undef $self->{value};
@ -651,7 +651,7 @@ my %globals;
&& do { $cfa_rsp -= 1*eval($$line) if ($cfa_reg eq "%rsp");
last;
};
/def_cfa/ && do { if ($$line =~ /(%r\w+)\s*,\s*(\.+)/) {
/def_cfa/ && do { if ($$line =~ /(%r\w+)\s*,\s*(.+)/) {
$cfa_reg = $1;
$cfa_rsp = -1*eval($2) if ($cfa_reg eq "%rsp");
}