From ce91ec9ae623531442836273710d29659fa7b6be Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 6 Apr 2005 19:45:39 +0000 Subject: [PATCH] Fix a namespace issue, reported by Vladimir Merzliakov! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21115 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../SparcV9/ModuloScheduling/DependenceAnalyzer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; } -} - -- 2.34.1