These strings aren't 'const char *' but 'char *'.

llvm-svn: 153805
This commit is contained in:
Bill Wendling 2012-03-31 10:51:45 +00:00
parent 8e34c4eea6
commit 3ca3830022
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ LTOCodeGenerator::~LTOCodeGenerator() {
delete _target; delete _target;
delete _nativeObjectFile; 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) E = _codegenOptions.end(); I != E; ++I)
free(*I); free(*I);
} }

View File

@ -65,7 +65,7 @@ private:
StringSet _mustPreserveSymbols; StringSet _mustPreserveSymbols;
StringSet _asmUndefinedRefs; StringSet _asmUndefinedRefs;
llvm::MemoryBuffer* _nativeObjectFile; llvm::MemoryBuffer* _nativeObjectFile;
std::vector<const char*> _codegenOptions; std::vector<char*> _codegenOptions;
std::string _mCpu; std::string _mCpu;
std::string _nativeObjectPath; std::string _nativeObjectPath;
}; };