diff options
author | Chris Lattner <sabre@nondot.org> | 2004-01-09 06:12:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-01-09 06:12:26 +0000 |
commit | f7703df4968084c18c248c1feea9961c19a32e6a (patch) | |
tree | 5a3e4830177c09d61c4bf51e8d6ef6338d172196 /lib/Transforms/Utils/DemoteRegToStack.cpp | |
parent | 21949d90881e89ab9c7b752f82f51577a1f0c095 (diff) |
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10727 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/DemoteRegToStack.cpp')
-rw-r--r-- | lib/Transforms/Utils/DemoteRegToStack.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/Transforms/Utils/DemoteRegToStack.cpp b/lib/Transforms/Utils/DemoteRegToStack.cpp index e35dca4de0..ec0b091f94 100644 --- a/lib/Transforms/Utils/DemoteRegToStack.cpp +++ b/lib/Transforms/Utils/DemoteRegToStack.cpp @@ -21,16 +21,15 @@ #include "llvm/iTerminators.h" #include "llvm/Type.h" #include "Support/hash_set" - -namespace llvm { +using namespace llvm; typedef hash_set<PHINode*> PhiSet; typedef hash_set<PHINode*>::iterator PhiSetIterator; // Helper function to push a phi *and* all its operands to the worklist! // Do not push an instruction if it is already in the result set of Phis to go. -inline void PushOperandsOnWorkList(std::vector<Instruction*>& workList, - PhiSet& phisToGo, PHINode* phiN) { +static inline void PushOperandsOnWorkList(std::vector<Instruction*>& workList, + PhiSet& phisToGo, PHINode* phiN) { for (User::op_iterator OI = phiN->op_begin(), OE = phiN->op_end(); OI != OE; ++OI) { Instruction* opI = cast<Instruction>(OI); @@ -133,7 +132,7 @@ static void AddLoadsAndStores(AllocaInst* XSlot, Instruction& X, // // Returns the pointer to the alloca inserted to create a stack slot for X. // -AllocaInst* DemoteRegToStack(Instruction& X) { +AllocaInst* llvm::DemoteRegToStack(Instruction& X) { if (X.getType() == Type::VoidTy) return 0; // nothing to do! @@ -162,5 +161,3 @@ AllocaInst* DemoteRegToStack(Instruction& X) { return XSlot; } - -} // End llvm namespace |