allow specified inline threshold to be negative, as the value is
authorChris Lattner <sabre@nondot.org>
Sat, 1 Mar 2008 08:09:51 +0000 (08:09 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Mar 2008 08:09:51 +0000 (08:09 +0000)
itself sometimes negative.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47786 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index 7ad7dc4c6ae57b7bad8f315e18ce4934a450d17c..acd360464ca0e44b89b83b53335dd438d05f4f1a 100644 (file)
@@ -31,7 +31,7 @@ STATISTIC(NumInlined, "Number of functions inlined");
 STATISTIC(NumDeleted, "Number of functions deleted because all callers found");
 
 namespace {
-  cl::opt<unsigned>             // FIXME: 200 is VERY conservative
+  cl::opt<int>             // FIXME: 200 is VERY conservative
   InlineLimit("inline-threshold", cl::Hidden, cl::init(200),
         cl::desc("Control the amount of inlining to perform (default = 200)"));
 }