Author: fjricci Date: Thu May 19 16:00:01 2016 New Revision: 270127 URL: http://llvm.org/viewvc/llvm-project?rev=270127&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 <fjri...@fb.com> This is a cherry-pick of r265420 Modified: lldb/branches/release_38/source/Core/ArchSpec.cpp Modified: lldb/branches/release_38/source/Core/ArchSpec.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/branches/release_38/source/Core/ArchSpec.cpp?rev=270127&r1=270126&r2=270127&view=diff ============================================================================== --- lldb/branches/release_38/source/Core/ArchSpec.cpp (original) +++ lldb/branches/release_38/source/Core/ArchSpec.cpp Thu May 19 16:00:01 2016 @@ -1483,10 +1483,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()); } _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits