[vmkit-commits] [vmkit] r137035 - /vmkit/trunk/lib/J3/Compiler/LowerConstantCalls.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Sun Aug 7 03:36:52 PDT 2011


Author: geoffray
Date: Sun Aug  7 05:36:52 2011
New Revision: 137035

URL: http://llvm.org/viewvc/llvm-project?rev=137035&view=rev
Log:
Give a name to the pass.


Modified:
    vmkit/trunk/lib/J3/Compiler/LowerConstantCalls.cpp

Modified: vmkit/trunk/lib/J3/Compiler/LowerConstantCalls.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/Compiler/LowerConstantCalls.cpp?rev=137035&r1=137034&r2=137035&view=diff
==============================================================================
--- vmkit/trunk/lib/J3/Compiler/LowerConstantCalls.cpp (original)
+++ vmkit/trunk/lib/J3/Compiler/LowerConstantCalls.cpp Sun Aug  7 05:36:52 2011
@@ -24,17 +24,19 @@
 
 namespace j3 {
 
-  class LowerConstantCalls : public FunctionPass {
-  public:
-    static char ID;
-    JavaLLVMCompiler* TheCompiler;
-    LowerConstantCalls(JavaLLVMCompiler* Compiler) : FunctionPass(ID),
-      TheCompiler(Compiler) { }
-
-    virtual bool runOnFunction(Function &F);
-  private:
-  };
-  char LowerConstantCalls::ID = 0;
+class LowerConstantCalls : public FunctionPass {
+public:
+  static char ID;
+  JavaLLVMCompiler* TheCompiler;
+  LowerConstantCalls(JavaLLVMCompiler* Compiler) : FunctionPass(ID),
+    TheCompiler(Compiler) { }
+
+  const char* getPassName() const { return "Lower Java calls"; }
+
+  virtual bool runOnFunction(Function &F);
+private:
+};
+char LowerConstantCalls::ID = 0;
 
 static Value* getTCM(J3Intrinsics* intrinsics, Value* Arg, Instruction* CI) {
   Value* GEP[2] = { intrinsics->constantZero,





More information about the vmkit-commits mailing list