call Target::SetArchitecture instead of modifying a
reference to the target's architecture so that the
target logging can show that the arch has been changed.
llvm-svn: 214667
if (process_arch.GetMachine() == llvm::Triple::arm &&
process_arch.GetTriple().getVendor() == llvm::Triple::Apple)
{
- target_arch = process_arch;
+ GetTarget().SetArchitecture (process_arch);
}
else
{
{
// The target doesn't have a valid architecture yet, set it from
// the architecture we got from the remote GDB server
- target_arch = process_arch;
+ GetTarget().SetArchitecture (process_arch);
}
}
}