diff options
author | Hans Wennborg <hans@hanshq.net> | 2012-09-07 08:22:57 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2012-09-07 08:22:57 +0000 |
commit | 08238adbbbde2934d1a239d38e85c0a62fd399a3 (patch) | |
tree | e6522f92b528383f60a2b683ea73bfe970abc582 /llvm/lib/Transforms | |
parent | b2f6e69af91c18a9476dc25a18e9f7df0ce4fc0b (diff) | |
download | bcm5719-llvm-08238adbbbde2934d1a239d38e85c0a62fd399a3.tar.gz bcm5719-llvm-08238adbbbde2934d1a239d38e85c0a62fd399a3.zip |
SimplifyCFG: ValidLookupTableConstant should be static
llvm-svn: 163378
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index d757c05c99c..3df309958b2 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/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<ConstantExpr>(C)) return CE->isGEPWithNoNotionalOverIndexing(); |