summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ArchSpec.cpp
diff options
context:
space:
mode:
authorStephane Sezer <sas@cd80.net>2016-04-05 17:29:19 +0000
committerStephane Sezer <sas@cd80.net>2016-04-05 17:29:19 +0000
commitbef0ff8c7fa0eed4c4beedbba18706161d208a5d (patch)
treebd8b9108de107c8d77b67bf31bfc625c601e81ae /lldb/source/Core/ArchSpec.cpp
parent03f650ff14bd714ae141eb714c0ae35396f8cc67 (diff)
downloadbcm5719-llvm-bef0ff8c7fa0eed4c4beedbba18706161d208a5d.tar.gz
bcm5719-llvm-bef0ff8c7fa0eed4c4beedbba18706161d208a5d.zip
Print environment when dumping arch triple
Summary: Print environment from triple if it exists. Reviewers: tfiala, clayborg Subscribers: lldb-commits, sas Differential Revision: http://reviews.llvm.org/D18620 Change by Francis Ricci <fjricci@fb.com> llvm-svn: 265420
Diffstat (limited to 'lldb/source/Core/ArchSpec.cpp')
-rw-r--r--lldb/source/Core/ArchSpec.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/ArchSpec.cpp b/lldb/source/Core/ArchSpec.cpp
index ecbd884ec52..5ac0479c6c8 100644
--- a/lldb/source/Core/ArchSpec.cpp
+++ b/lldb/source/Core/ArchSpec.cpp
@@ -1565,10 +1565,14 @@ ArchSpec::DumpTriple(Stream &s) const
llvm::StringRef arch_str = triple.getArchName();
llvm::StringRef vendor_str = triple.getVendorName();
llvm::StringRef os_str = triple.getOSName();
+ llvm::StringRef environ_str = triple.getEnvironmentName();
s.Printf("%s-%s-%s",
arch_str.empty() ? "*" : arch_str.str().c_str(),
vendor_str.empty() ? "*" : vendor_str.str().c_str(),
os_str.empty() ? "*" : os_str.str().c_str()
);
+
+ if (!environ_str.empty())
+ s.Printf("-%s", environ_str.str().c_str());
}
OpenPOWER on IntegriCloud