Convert Command Line option handling code to use the CommandLine 2.0 interface

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2983 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-22 02:08:59 +00:00
parent 331de23705
commit 21735d739b

View File

@ -28,9 +28,9 @@ AnalysisID FindUnsafePointerTypes::ID(AnalysisID::create<FindUnsafePointerTypes>
// Provide a command line option to turn on printing of which instructions cause
// a type to become invalid
//
static cl::Flag
PrintFailures("printunsafeptrinst", "Print Unsafe Pointer Access Instructions",
cl::Hidden, false);
static cl::opt<bool>
PrintFailures("printunsafeptrinst", cl::Hidden,
cl::desc("Print Unsafe Pointer Access Instructions"));
static inline bool isSafeInstruction(const Instruction *I) {
switch (I->getOpcode()) {