Convert Command Line option handling code to use the CommandLine 2.0 interface
authorChris Lattner <sabre@nondot.org>
Mon, 22 Jul 2002 02:08:59 +0000 (02:08 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 22 Jul 2002 02:08:59 +0000 (02:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2983 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/FindUnsafePointerTypes.cpp

index 8cad60d1787f55d8d2c20edc571384cfd0024b75..1180766f157a8491acf80ff3894cb278acc1f20b 100644 (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()) {