summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2018-05-08 06:21:12 +0000
committerFangrui Song <maskray@google.com>2018-05-08 06:21:12 +0000
commitbd088560a88f602c78ffde0b68c97b20f29dc1b6 (patch)
treec0ab35ad048a28906d477197d3179a15663aa831
parent47bc8f123955635610e27e894ec092fb170748f5 (diff)
downloadbcm5719-llvm-bd088560a88f602c78ffde0b68c97b20f29dc1b6.tar.gz
bcm5719-llvm-bd088560a88f602c78ffde0b68c97b20f29dc1b6.zip
[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
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp3
-rw-r--r--llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp2
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
index b9dc2151e06..6c61763e1ab 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
@@ -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,
diff --git a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
index 952010c95fd..273c535925c 100644
--- a/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
+++ b/llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
@@ -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.
OpenPOWER on IntegriCloud