diff --git a/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp b/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp index 02d28ad9dfe..53f12ed4acf 100644 --- a/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp +++ b/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp @@ -16,14 +16,15 @@ #include "DependenceAnalyzer.h" #include "llvm/Type.h" #include "llvm/Support/Debug.h" - -namespace llvm { +using namespace llvm; /// Create ModuloSchedulingPass /// -FunctionPass *llvm::createDependenceAnalyzer() { +namespace llvm { +FunctionPass *createDependenceAnalyzer() { return new DependenceAnalyzer(); +} } bool DependenceAnalyzer::runOnFunction(Function &F) { @@ -105,6 +106,4 @@ FunctionPass *llvm::createDependenceAnalyzer() { DependenceResult dr = DependenceResult(deps); return dr; } -} -