Add comment explaining the default constructor (ArchSpec) used in CreateTarget().
authorJohnny Chen <johnny.chen@apple.com>
Thu, 5 Jan 2012 01:26:01 +0000 (01:26 +0000)
committerJohnny Chen <johnny.chen@apple.com>
Thu, 5 Jan 2012 01:26:01 +0000 (01:26 +0000)
llvm-svn: 147590

lldb/source/Target/TargetList.cpp

index eec77fb..b6e5d29 100644 (file)
@@ -72,6 +72,9 @@ TargetList::CreateTarget (Debugger &debugger,
     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)