[llvm-commits] [llvm] r153805 - in /llvm/trunk/tools/lto: LTOCodeGenerator.cpp LTOCodeGenerator.h

Bill Wendling isanbard at gmail.com
Sat Mar 31 03:51:45 PDT 2012


Author: void
Date: Sat Mar 31 05:51:45 2012
New Revision: 153805

URL: http://llvm.org/viewvc/llvm-project?rev=153805&view=rev
Log:
These strings aren't 'const char *' but 'char *'.

Modified:
    llvm/trunk/tools/lto/LTOCodeGenerator.cpp
    llvm/trunk/tools/lto/LTOCodeGenerator.h

Modified: llvm/trunk/tools/lto/LTOCodeGenerator.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.cpp?rev=153805&r1=153804&r2=153805&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.cpp (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.cpp Sat Mar 31 05:51:45 2012
@@ -80,7 +80,7 @@
   delete _target;
   delete _nativeObjectFile;
 
-  for (std::vector<const char*>::iterator I = _codegenOptions.begin(),
+  for (std::vector<char*>::iterator I = _codegenOptions.begin(),
          E = _codegenOptions.end(); I != E; ++I)
     free(*I);
 }

Modified: llvm/trunk/tools/lto/LTOCodeGenerator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/lto/LTOCodeGenerator.h?rev=153805&r1=153804&r2=153805&view=diff
==============================================================================
--- llvm/trunk/tools/lto/LTOCodeGenerator.h (original)
+++ llvm/trunk/tools/lto/LTOCodeGenerator.h Sat Mar 31 05:51:45 2012
@@ -65,7 +65,7 @@
     StringSet                   _mustPreserveSymbols;
     StringSet                   _asmUndefinedRefs;
     llvm::MemoryBuffer*         _nativeObjectFile;
-    std::vector<const char*>    _codegenOptions;
+    std::vector<char*>          _codegenOptions;
     std::string                 _mCpu;
     std::string                 _nativeObjectPath;
 };





More information about the llvm-commits mailing list