From: Davide Italiano Date: Tue, 25 Apr 2017 03:48:47 +0000 (+0000) Subject: [SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c385a613bbb8432705ac34837f3bd9ad210eece;p=llvm [SimplifyLibCalls] Remove a cl::opt that's been `true` for a long time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301288 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp index aa71e3669ea..956bd08d852 100644 --- a/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/lib/Transforms/Utils/SimplifyLibCalls.cpp @@ -36,10 +36,6 @@ using namespace llvm; using namespace PatternMatch; -static cl::opt - ColdErrorCalls("error-reporting-is-cold", cl::init(true), cl::Hidden, - cl::desc("Treat error-reporting calls as cold")); - static cl::opt EnableUnsafeFPShrink("enable-double-float-shrink", cl::Hidden, cl::init(false), @@ -1632,7 +1628,7 @@ Value *LibCallSimplifier::optimizeErrorReporting(CallInst *CI, IRBuilder<> &B, } static bool isReportingError(Function *Callee, CallInst *CI, int StreamArg) { - if (!ColdErrorCalls || !Callee || !Callee->isDeclaration()) + if (!Callee || !Callee->isDeclaration()) return false; if (StreamArg < 0)