llvm.org GIT mirror llvm / 2d90058
more dead thing zapping. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112353 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 9 years ago
1 changed file(s) with 1 addition(s) and 17 deletion(s). Raw diff Collapse all Expand all
467467 // wrong type.
468468 const OptionDescription& FindSwitch(const std::string& OptName) const;
469469 const OptionDescription& FindParameter(const std::string& OptName) const;
470 const OptionDescription& FindList(const std::string& OptName) const;
471470 const OptionDescription& FindParameterList(const std::string& OptName) const;
472471 const OptionDescription&
473472 FindListOrParameter(const std::string& OptName) const;
498497 const OptionDescription& OptDesc = this->FindOption(OptName);
499498 if (!OptDesc.isSwitch())
500499 throw OptName + ": incorrect option type - should be a switch!";
501 return OptDesc;
502 }
503
504 const OptionDescription&
505 OptionDescriptions::FindList(const std::string& OptName) const {
506 const OptionDescription& OptDesc = this->FindOption(OptName);
507 if (!OptDesc.isList())
508 throw OptName + ": incorrect option type - should be a list!";
509500 return OptDesc;
510501 }
511502
854845
855846 // Default ctor here is needed because StringMap can only store
856847 // DefaultConstructible objects
857 ToolDescription ()
858 : CmdLine(0), Actions(0), OutFileOption("-o"),
859 Flags(0), OnEmpty(0)
860 {}
861 ToolDescription (const std::string& n)
848 ToolDescription (const std::string &n = "")
862849 : Name(n), CmdLine(0), Actions(0), OutFileOption("-o"),
863850 Flags(0), OnEmpty(0)
864851 {}
29152902 this->onCmdLine(InitPtrToString(Arg));
29162903 }
29172904
2918 void operator()(const DagInit* Test, unsigned, bool) {
2919 this->operator()(Test);
2920 }
29212905 void operator()(const Init* Statement, unsigned) {
29222906 this->operator()(Statement);
29232907 }