[DebugInfo] Accept S in augmentation strings in CIE.

glibc libc.a(sigaction.o) compiled from sysdeps/unix/sysv/linux/x86_64/sigaction.c uses "zRS".

llvm-svn: 331738
This commit is contained in:
Fangrui Song 2018-05-08 06:21:12 +00:00
parent dc77820944
commit 84a6cf0ade
2 changed files with 4 additions and 1 deletions

View File

@ -430,6 +430,9 @@ void DWARFDebugFrame::parse(DWARFDataExtractor Data) {
case 'R':
FDEPointerEncoding = Data.getU8(&Offset);
break;
case 'S':
// Current frame is a signal trampoline.
break;
case 'z':
if (i)
ReportError(StartOffset,

View File

@ -565,7 +565,7 @@ int main(int argc, char **argv) {
ShowChildren = true;
// Defaults to a.out if no filenames specified.
if (InputFilenames.size() == 0)
if (InputFilenames.empty())
InputFilenames.push_back("a.out");
// Expand any .dSYM bundles to the individual object files contained therein.