From: Hans Wennborg Date: Fri, 7 Sep 2012 08:22:57 +0000 (+0000) Subject: SimplifyCFG: ValidLookupTableConstant should be static X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bf01582165a9cf8e95a21a284930a82c3fc3bda5;p=oota-llvm.git SimplifyCFG: ValidLookupTableConstant should be static git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163378 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index d757c05c99c..3df309958b2 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2981,7 +2981,7 @@ static bool ForwardSwitchConditionToPHI(SwitchInst *SI) { /// ValidLookupTableConstant - Return true if the backend will be able to handle /// initializing an array of constants like C. -bool ValidLookupTableConstant(Constant *C) { +static bool ValidLookupTableConstant(Constant *C) { if (ConstantExpr *CE = dyn_cast(C)) return CE->isGEPWithNoNotionalOverIndexing();