X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=tools%2Fllvm-db%2FCLICommand.h;h=0beec91eda0c4a1a3cd6350e581d8cf078c382e7;hb=ebcba612b537f45a033ccd9a60bee0c45e2e2ded;hp=ad8b8403bd3aa9beb14eadb0763be9aa67322717;hpb=d508776cd5a70afe85a0811ed44c4c71db0cc250;p=oota-llvm.git diff --git a/tools/llvm-db/CLICommand.h b/tools/llvm-db/CLICommand.h index ad8b8403bd3..0beec91eda0 100644 --- a/tools/llvm-db/CLICommand.h +++ b/tools/llvm-db/CLICommand.h @@ -1,10 +1,10 @@ //===- CLICommand.h - Classes used to represent commands --------*- C++ -*-===// -// +// // The LLVM Compiler Infrastructure // -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// //===----------------------------------------------------------------------===// // // This file defines a small class hierarchy used to represent the various types @@ -74,7 +74,7 @@ namespace llvm { /// removeOptionName - Eliminate one of the names for this option. /// void removeOptionName(const std::string &Name) { - unsigned i = 0; + unsigned i = 0; for (; OptionNames[i] != Name; ++i) assert(i+1 < OptionNames.size() && "Didn't find option name!"); OptionNames.erase(OptionNames.begin()+i); @@ -101,7 +101,7 @@ namespace llvm { BuiltinCLICommand(const std::string &ShortHelp, const std::string &LongHelp, void (CLIDebugger::*impl)(std::string&)) : CLICommand(ShortHelp, LongHelp), Impl(impl) {} - + void runCommand(CLIDebugger &D, std::string &Arguments) { (D.*Impl)(Arguments); }