mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 20:24:32 +00:00
Remove stringutils.h file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -109,20 +109,20 @@ ProgramOptions::GetOriginalArgs() const
|
|||||||
return argv;
|
return argv;
|
||||||
}
|
}
|
||||||
|
|
||||||
vector<char*>
|
vector<string>
|
||||||
ProgramOptions::GetDescription() const
|
ProgramOptions::GetDescription() const
|
||||||
{
|
{
|
||||||
vector<char*> optDesc;
|
vector<string> optDesc;
|
||||||
|
|
||||||
if (optDesc.size() < (unsigned) argc)
|
if (optDesc.size() < (unsigned) argc)
|
||||||
{
|
{
|
||||||
for (StringMap<ProgramOption*>::const_iterator iter=optionRegistry.begin();
|
for (hash_map<string,ProgramOption*>::const_iterator iter=optionRegistry.begin();
|
||||||
! (iter == optionRegistry.end());
|
! (iter == optionRegistry.end());
|
||||||
++iter)
|
++iter)
|
||||||
{
|
{
|
||||||
const ProgramOption* handler = (*iter).second;
|
const ProgramOption* handler = iter->second;
|
||||||
optDesc.push_back(strdup(handler->ArgString())); // 1st
|
optDesc.push_back(handler->ArgString()); // 1st
|
||||||
optDesc.push_back(strdup(handler->HelpMesg())); // 2nd
|
optDesc.push_back(handler->HelpMesg()); // 2nd
|
||||||
optDesc.push_back(handler->GetTextValue()); // 3rd
|
optDesc.push_back(handler->GetTextValue()); // 3rd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -215,10 +215,8 @@ ProgramOptions::PrintOptions(ostream& stream) const
|
|||||||
stream << "\tUse argument 0 to turn OFF a flag option: "
|
stream << "\tUse argument 0 to turn OFF a flag option: "
|
||||||
<< "-<flag_opt> 0" << endl << endl;
|
<< "-<flag_opt> 0" << endl << endl;
|
||||||
|
|
||||||
for (StringMap<ProgramOption*>::const_iterator iter=optionRegistry.begin();
|
for (hash_map<string,ProgramOption*>::const_iterator iter = optionRegistry.begin();
|
||||||
! (iter == optionRegistry.end());
|
iter != optionRegistry.end(); ++iter) {
|
||||||
++iter)
|
|
||||||
{
|
|
||||||
const ProgramOption* handler = (*iter).second;
|
const ProgramOption* handler = (*iter).second;
|
||||||
|
|
||||||
stream << "\t-" << handler->ArgString();
|
stream << "\t-" << handler->ArgString();
|
||||||
|
Reference in New Issue
Block a user