summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-test
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2018-12-12 15:46:18 +0000
committerPavel Labath <pavel@labath.sk>2018-12-12 15:46:18 +0000
commitef8683abec6b4f36cef4bba2fd6a4b69f0e59f22 (patch)
treed1d7518afc2b5d089c6106c179cfe94ad0cf42af /lldb/tools/lldb-test
parent9d1fa349a46a8ace536b32bc6d6eb40fee0ebc40 (diff)
downloadbcm5719-llvm-ef8683abec6b4f36cef4bba2fd6a4b69f0e59f22.tar.gz
bcm5719-llvm-ef8683abec6b4f36cef4bba2fd6a4b69f0e59f22.zip
ELF: Clean up section type computation
Move code into a separate function, and replace the if-else chain with llvm::StringSwitch. A slight behavioral change is that now I use the section flags (SHF_TLS) instead of the section name to set the thread-specific property. There is no explanation in the original commit introducing this (r153537) as to why that was done this way, but the new behavior should be more correct. llvm-svn: 348936
Diffstat (limited to 'lldb/tools/lldb-test')
-rw-r--r--lldb/tools/lldb-test/lldb-test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp
index 08ad0158fc3..a37f8c5c897 100644
--- a/lldb/tools/lldb-test/lldb-test.cpp
+++ b/lldb/tools/lldb-test/lldb-test.cpp
@@ -733,6 +733,7 @@ static void dumpSectionList(LinePrinter &Printer, const SectionList &List, bool
Printer.formatLine("Index: {0}", I);
Printer.formatLine("Name: {0}", S->GetName().GetStringRef());
Printer.formatLine("Type: {0}", S->GetTypeAsCString());
+ Printer.formatLine("Thread specific: {0:y}", S->IsThreadSpecific());
Printer.formatLine("VM size: {0}", S->GetByteSize());
Printer.formatLine("File size: {0}", S->GetFileSize());
OpenPOWER on IntegriCloud