Browse Source

2009-07-14 Zoltan Varga <[email protected]>

	* mini-llvm-cpp.cpp: Update to latest llvm SVN api.

svn path=/trunk/mono/; revision=137885
Zoltan Varga 16 years ago
parent
commit
bbccb6b5ad
2 changed files with 14 additions and 1 deletions
  1. 2 0
      mono/mini/ChangeLog
  2. 12 1
      mono/mini/mini-llvm-cpp.cpp

+ 2 - 0
mono/mini/ChangeLog

@@ -1,5 +1,7 @@
 2009-07-14  Zoltan Varga  <[email protected]>
 
+	* mini-llvm-cpp.cpp: Update to latest llvm SVN api.
+
 	* Makefile.am (mono_LDADD): Pass LLVM_LDFLAGS to the linked.
 
 	* unwind.c (mono_unwind_get_ops_from_fde): Make this return

+ 12 - 1
mono/mini/mini-llvm-cpp.cpp

@@ -67,6 +67,9 @@ public:
     void *getDlsymTable() const {
 		return mm->getDlsymTable ();
     }
+
+	void setPoisonMemory(bool) {
+	}
       
 	void SetDlsymTable(void *ptr);
   
@@ -80,6 +83,8 @@ public:
 						 unsigned char *FunctionEnd);
 
 	unsigned char *allocateSpace(intptr_t Size, unsigned Alignment);
+
+	uint8_t *allocateGlobal(uintptr_t Size, unsigned Alignment);
   
 	void deallocateMemForFunction(const Function *F);
   
@@ -149,7 +154,13 @@ MonoJITMemoryManager::allocateSpace(intptr_t Size, unsigned Alignment)
 {
 	return new unsigned char [Size];
 }
-  
+
+uint8_t *
+MonoJITMemoryManager::allocateGlobal(uintptr_t Size, unsigned Alignment)
+{
+	return new unsigned char [Size];
+}
+
 void
 MonoJITMemoryManager::deallocateMemForFunction(const Function *F)
 {