[cfe-commits] r67361 - /cfe/trunk/include/clang/Driver/ToolChain.h

Daniel Dunbar daniel at zuster.org
Thu Mar 19 21:36:46 PDT 2009


Author: ddunbar
Date: Thu Mar 19 23:36:45 2009
New Revision: 67361

URL: http://llvm.org/viewvc/llvm-project?rev=67361&view=rev
Log:
Driver: Unbreak ToolChain::get{File,Program}Paths (which should return
reference, not copy).

Modified:
    cfe/trunk/include/clang/Driver/ToolChain.h

Modified: cfe/trunk/include/clang/Driver/ToolChain.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/ToolChain.h?rev=67361&r1=67360&r2=67361&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/ToolChain.h (original)
+++ cfe/trunk/include/clang/Driver/ToolChain.h Thu Mar 19 23:36:45 2009
@@ -53,11 +53,11 @@
   const std::string &getPlatform() const { return Platform; }
   const std::string &getOS() const { return OS; }
 
-  path_list getFilePaths() { return FilePaths; }
-  const path_list getFilePaths() const { return FilePaths; }
+  path_list &getFilePaths() { return FilePaths; }
+  const path_list &getFilePaths() const { return FilePaths; }
 
-  path_list getProgramPaths() { return ProgramPaths; }
-  const path_list getProgramPaths() const { return ProgramPaths; }
+  path_list &getProgramPaths() { return ProgramPaths; }
+  const path_list &getProgramPaths() const { return ProgramPaths; }
 
   // Tool access.
 





More information about the cfe-commits mailing list