mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-04 18:24:38 +00:00
Fix more -Wcast-qual warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -399,7 +399,7 @@ static int GenerateNative(const std::string &OutputFilename,
|
|||||||
|
|
||||||
// Run the compiler to assembly and link together the program.
|
// Run the compiler to assembly and link together the program.
|
||||||
int R = sys::Program::ExecuteAndWait(
|
int R = sys::Program::ExecuteAndWait(
|
||||||
gcc, &Args[0], (const char**)clean_env, 0, 0, 0, &ErrMsg);
|
gcc, &Args[0], const_cast<const char **>(clean_env), 0, 0, 0, &ErrMsg);
|
||||||
delete [] clean_env;
|
delete [] clean_env;
|
||||||
return R;
|
return R;
|
||||||
}
|
}
|
||||||
|
@ -370,7 +370,7 @@ bool LTOCodeGenerator::generateAssemblyCode(formatted_raw_ostream& out,
|
|||||||
// if options were requested, set them
|
// if options were requested, set them
|
||||||
if ( !_codegenOptions.empty() )
|
if ( !_codegenOptions.empty() )
|
||||||
cl::ParseCommandLineOptions(_codegenOptions.size(),
|
cl::ParseCommandLineOptions(_codegenOptions.size(),
|
||||||
(char**)&_codegenOptions[0]);
|
const_cast<char **>(&_codegenOptions[0]));
|
||||||
|
|
||||||
// Instantiate the pass manager to organize the passes.
|
// Instantiate the pass manager to organize the passes.
|
||||||
PassManager passes;
|
PassManager passes;
|
||||||
|
Reference in New Issue
Block a user