diff options
author | Dan Gohman <gohman@apple.com> | 2009-08-07 01:32:21 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-08-07 01:32:21 +0000 |
commit | 7db949df789383acce98ef072f08794fdd5bd04e (patch) | |
tree | 30a8b3e2bea69508eb5da0dbca173cbe23052743 /lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | 748f98f90836dbb4c36fea67c9ebe7b6bb13255e (diff) |
Fix a bunch of namespace pollution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78363 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r-- | lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 3cfaed6a66..6a56a8d824 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -760,6 +760,7 @@ void PromoteMem2Reg::RewriteSingleStoreAlloca(AllocaInst *AI, } } +namespace { /// StoreIndexSearchPredicate - This is a helper predicate used to search by the /// first element of a pair. @@ -770,6 +771,8 @@ struct StoreIndexSearchPredicate { } }; +} + /// PromoteSingleBlockAlloca - Many allocas are only used within a single basic /// block. If this is the case, avoid traversing the CFG and inserting a lot of /// potentially useless PHI nodes by just performing a single linear pass over |