projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e57838
)
SimplifyCFG: ValidLookupTableConstant should be static
author
Hans Wennborg
<hans@hanshq.net>
Fri, 7 Sep 2012 08:22:57 +0000
(08:22 +0000)
committer
Hans Wennborg
<hans@hanshq.net>
Fri, 7 Sep 2012 08:22:57 +0000
(08:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163378
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/SimplifyCFG.cpp
b/lib/Transforms/Utils/SimplifyCFG.cpp
index d757c05c99cf5b8f62bc3a6001ef340183e2934f..3df309958b2bdc4a15b81548cb50205b309f8167 100644
(file)
--- 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<ConstantExpr>(C))
return CE->isGEPWithNoNotionalOverIndexing();