[llvm-commits] CVS: llvm-java/include/llvm/Java/Compiler.h
Alkis Evlogimenos
alkis at cs.uiuc.edu
Sat May 22 18:27:01 PDT 2004
Changes in directory llvm-java/include/llvm/Java:
Compiler.h updated: 1.1 -> 1.2
---
Log message:
Put Java::compile free function in a Java::Compiler object.
---
Diffs of the changes: (+17 -1)
Index: llvm-java/include/llvm/Java/Compiler.h
diff -u llvm-java/include/llvm/Java/Compiler.h:1.1 llvm-java/include/llvm/Java/Compiler.h:1.2
--- llvm-java/include/llvm/Java/Compiler.h:1.1 Sat May 22 00:58:26 2004
+++ llvm-java/include/llvm/Java/Compiler.h Sat May 22 18:25:22 2004
@@ -15,10 +15,26 @@
#define LLVM_JAVA_COMPILER_H
#include <llvm/Module.h>
+#include <stack>
+#include <vector>
namespace llvm { namespace Java {
- Module* compile(const ClassFile& cf);
+ class Compiler {
+ public:
+ Module* compile(const ClassFile& cf);
+
+ private:
+ void compileMethod(Module& module, const Method& method);
+ void initForCode(const CodeAttribute& codeAttr);
+
+ private:
+ typedef std::stack<Value*, std::vector<Value*> > OperandStack;
+ typedef std::vector<Value*> Locals;
+
+ OperandStack opStack_;
+ Locals locals_;
+ };
} } // namespace llvm::Java
More information about the llvm-commits
mailing list