[Lldb-commits] [lldb] r147590 - /lldb/trunk/source/Target/TargetList.cpp
Johnny Chen
johnny.chen at apple.com
Wed Jan 4 17:26:01 PST 2012
Author: johnny
Date: Wed Jan 4 19:26:01 2012
New Revision: 147590
URL: http://llvm.org/viewvc/llvm-project?rev=147590&view=rev
Log:
Add comment explaining the default constructor (ArchSpec) used in CreateTarget().
Modified:
lldb/trunk/source/Target/TargetList.cpp
Modified: lldb/trunk/source/Target/TargetList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/TargetList.cpp?rev=147590&r1=147589&r2=147590&view=diff
==============================================================================
--- lldb/trunk/source/Target/TargetList.cpp (original)
+++ lldb/trunk/source/Target/TargetList.cpp Wed Jan 4 19:26:01 2012
@@ -72,6 +72,9 @@
if (!platform_sp)
platform_sp = debugger.GetPlatformList().GetSelectedPlatform ();
+ // This is purposely left empty unless it is specified by triple_cstr.
+ // If not initialized via triple_cstr, then the currently selected platform
+ // will set the architecture correctly.
ArchSpec arch;
if (triple_cstr)
More information about the lldb-commits
mailing list