[Lldb-commits] [lldb] r265420 - Print environment when dumping arch triple
Stephane Sezer via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 5 10:29:20 PDT 2016
Author: sas
Date: Tue Apr 5 12:29:19 2016
New Revision: 265420
URL: http://llvm.org/viewvc/llvm-project?rev=265420&view=rev
Log:
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 at fb.com>
Modified:
lldb/trunk/source/Core/ArchSpec.cpp
Modified: lldb/trunk/source/Core/ArchSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ArchSpec.cpp?rev=265420&r1=265419&r2=265420&view=diff
==============================================================================
--- lldb/trunk/source/Core/ArchSpec.cpp (original)
+++ lldb/trunk/source/Core/ArchSpec.cpp Tue Apr 5 12:29:19 2016
@@ -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());
}
More information about the lldb-commits
mailing list