[llvm-commits] [vmkit] r51037 - in /vmkit/trunk/lib/N3/VMCore: CLIJit.cpp LowerArrayLength.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Tue May 13 07:15:18 PDT 2008
Author: geoffray
Date: Tue May 13 09:15:18 2008
New Revision: 51037
URL: http://llvm.org/viewvc/llvm-project?rev=51037&view=rev
Log:
Fix compilation build.
Modified:
vmkit/trunk/lib/N3/VMCore/CLIJit.cpp
vmkit/trunk/lib/N3/VMCore/LowerArrayLength.cpp
Modified: vmkit/trunk/lib/N3/VMCore/CLIJit.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/N3/VMCore/CLIJit.cpp?rev=51037&r1=51036&r2=51037&view=diff
==============================================================================
--- vmkit/trunk/lib/N3/VMCore/CLIJit.cpp (original)
+++ vmkit/trunk/lib/N3/VMCore/CLIJit.cpp Tue May 13 09:15:18 2008
@@ -2193,13 +2193,10 @@
namespace mvm {
llvm::FunctionPass* createEscapeAnalysisPass(llvm::Function*, llvm::Function*);
-}
-
-namespace n3 {
llvm::FunctionPass* createLowerArrayLengthPass();
-//llvm::FunctionPass* createArrayChecksPass();
}
+
static void addPass(FunctionPassManager *PM, Pass *P) {
// Add the pass to the pass manager...
PM->add(P);
@@ -2252,5 +2249,5 @@
addPass(PM, llvm::createDeadStoreEliminationPass()); // Delete dead stores
addPass(PM, llvm::createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, llvm::createCFGSimplificationPass()); // Merge & remove BBs
- addPass(PM, n3::createLowerArrayLengthPass());
+ addPass(PM, mvm::createLowerArrayLengthPass());
}
Modified: vmkit/trunk/lib/N3/VMCore/LowerArrayLength.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/N3/VMCore/LowerArrayLength.cpp?rev=51037&r1=51036&r2=51037&view=diff
==============================================================================
--- vmkit/trunk/lib/N3/VMCore/LowerArrayLength.cpp (original)
+++ vmkit/trunk/lib/N3/VMCore/LowerArrayLength.cpp Tue May 13 09:15:18 2008
@@ -20,7 +20,7 @@
using namespace llvm;
-namespace {
+namespace mvm {
class VISIBILITY_HIDDEN LowerArrayLength : public FunctionPass {
public:
@@ -32,7 +32,6 @@
};
char LowerArrayLength::ID = 0;
RegisterPass<LowerArrayLength> X("LowerArrayLength", "Lower Array length");
-}
bool LowerArrayLength::runOnFunction(Function& F) {
bool Changed = false;
@@ -62,10 +61,9 @@
return Changed;
}
-namespace n3 {
-
LowerArrayLength* createLowerArrayLengthPass() {
return new LowerArrayLength();
}
}
+
More information about the llvm-commits
mailing list