[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp

Misha Brukman brukman at cs.uiuc.edu
Fri Aug 15 13:04:03 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcV9CodeEmitter.cpp updated: 1.29 -> 1.30

---
Log message:

Now that the JIT memory manager allocates as many bytes as necessary rather than
rounding up to a page, we need to request (num instrs * 4) bytes. However, I
think that 64 bytes is overkill for the stub function.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp
diff -u llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.29 llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.30
--- llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp:1.29	Fri Aug 15 11:15:28 2003
+++ llvm/lib/Target/Sparc/SparcV9CodeEmitter.cpp	Fri Aug 15 13:03:06 2003
@@ -373,7 +373,8 @@
 /// directly.
 ///
 uint64_t JITResolver::emitStubForFunction(Function *F) {
-  MCE.startFunctionStub(*F, 20);
+  // FIXME: 40 is not enough... but should be
+  MCE.startFunctionStub(*F, 64);
 
   DEBUG(std::cerr << "Emitting stub at addr: 0x" 
                   << std::hex << MCE.getCurrentPCValue() << "\n");





More information about the llvm-commits mailing list