Finegrainify namespacification

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10138 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-11-21 21:54:22 +00:00
parent 1192283096
commit 1e2385b941
12 changed files with 27 additions and 52 deletions

View File

@@ -29,8 +29,7 @@
#include "Support/Statistic.h"
#include "Support/iterator"
#include <set>
namespace llvm {
using namespace llvm;
namespace {
Statistic<> NumArgumentsEliminated("deadargelim",
@@ -108,8 +107,8 @@ namespace {
/// createDeadArgEliminationPass - This pass removes arguments from functions
/// which are not used by the body of the function.
///
Pass *createDeadArgEliminationPass() { return new DAE(); }
Pass *createDeadArgHackingPass() { return new DAH(); }
Pass *llvm::createDeadArgEliminationPass() { return new DAE(); }
Pass *llvm::createDeadArgHackingPass() { return new DAH(); }
static inline bool CallPassesValueThoughVararg(Instruction *Call,
const Value *Arg) {
@@ -578,6 +577,3 @@ bool DAE::run(Module &M) {
RemoveDeadArgumentsFromFunction(*DeadRetVal.begin());
return true;
}
} // End llvm namespace