Hello,
I was looking at sys::getDefaultTargetTriple() (file:
lib/Support/Unix/Host.inc ) and there is something
unclear to me.
std::string sys::getDefaultTargetTriple() {
StringRef TargetTripleString(LLVM_DEFAULT_TARGET_TRIPLE);
std::pair<StringRef, StringRef> ArchSplit = TargetTripleString.split('-');
// Normalize the arch, since the target triple may not actually match the
// target.
std::string Arch = ArchSplit.first;
std::string Triple(Arch);
Triple += '-';
Triple += ArchSplit.second;
[...]
Does content of Tripe = TargetTripleString? Of course
with the difference of the container type.
Do I miss something?
Hi Kamil,
Do I miss something?
Very well spotted. I don't think you've missed anything, it's
pointless. Looking through the git history the split served some
purpose in the past, but we should probably just remove it now.
Do you want to or shall I?
Cheers.
Tim.
Tim Northover wrote:
Hi Kamil,
> Do I miss something?
Very well spotted. I don't think you've missed anything, it's
pointless. Looking through the git history the split served some
purpose in the past, but we should probably just remove it now.
Do you want to or shall I?
A cleanup patch was sent in a private mail. Please push it forward for trunk.
A cleanup patch was sent in a private mail. Please push it forward for trunk.
Thanks Kamil, I've committed it as r228926.
Tim.