[llvm-commits] CVS: llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Apr 6 12:46:02 PDT 2005
Changes in directory llvm/lib/Target/SparcV9/ModuloScheduling:
DependenceAnalyzer.cpp updated: 1.2 -> 1.3
---
Log message:
Fix a namespace issue, reported by Vladimir Merzliakov!
---
Diffs of the changes: (+4 -5)
DependenceAnalyzer.cpp | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp
diff -u llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp:1.2 llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp:1.3
--- llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp:1.2 Fri Apr 1 09:41:30 2005
+++ llvm/lib/Target/SparcV9/ModuloScheduling/DependenceAnalyzer.cpp Wed Apr 6 14:45:39 2005
@@ -16,15 +16,16 @@
#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) {
AA = &getAnalysis<AliasAnalysis>();
@@ -105,6 +106,4 @@
DependenceResult dr = DependenceResult(deps);
return dr;
}
-}
-
More information about the llvm-commits
mailing list