[llvm-commits] CVS: llvm/lib/ExecutionEngine/JIT/VM.cpp

Misha Brukman brukman at cs.uiuc.edu
Mon Nov 17 14:38:03 PST 2003


Changes in directory llvm/lib/ExecutionEngine/JIT:

VM.cpp updated: 1.13 -> 1.14

---
Log message:

* Order #includes as per style guide
* Delete blank comment lines
* Eliminate space between function name and open-paren ( to be consistent


---
Diffs of the changes:  (+7 -8)

Index: llvm/lib/ExecutionEngine/JIT/VM.cpp
diff -u llvm/lib/ExecutionEngine/JIT/VM.cpp:1.13 llvm/lib/ExecutionEngine/JIT/VM.cpp:1.14
--- llvm/lib/ExecutionEngine/JIT/VM.cpp:1.13	Tue Nov 11 16:41:33 2003
+++ llvm/lib/ExecutionEngine/JIT/VM.cpp	Mon Nov 17 14:37:02 2003
@@ -15,8 +15,8 @@
 #include "VM.h"
 #include "llvm/Function.h"
 #include "llvm/ModuleProvider.h"
-#include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/CodeGen/MachineCodeEmitter.h"
+#include "llvm/CodeGen/MachineFunction.h"
 #include "llvm/Target/TargetMachine.h"
 
 namespace llvm {
@@ -39,7 +39,6 @@
 
   // Turn the machine code intermediate representation into bytes in memory that
   // may be executed.
-  //
   if (TM.addPassesToEmitMachineCode(PM, *MCE)) {
     std::cerr << "lli: target '" << TM.getName()
               << "' doesn't support machine code emission!\n";
@@ -51,9 +50,9 @@
 /// just-in-time compilation passes on F, hopefully filling in
 /// GlobalAddress[F] with the address of F's machine code.
 ///
-void VM::runJITOnFunction (Function *F) {
+void VM::runJITOnFunction(Function *F) {
   static bool isAlreadyCodeGenerating = false;
-  assert(!isAlreadyCodeGenerating && "ERROR: RECURSIVE COMPILATION DETECTED!");
+  assert(!isAlreadyCodeGenerating && "Error: Recursive compilation detected!");
 
   // JIT the function
   isAlreadyCodeGenerating = true;
@@ -74,7 +73,7 @@
   if (F->isExternal())
     return Addr = getPointerToNamedFunction(F->getName());
 
-  runJITOnFunction (F);
+  runJITOnFunction(F);
   assert(Addr && "Code generation didn't add function to GlobalAddress table!");
   return Addr;
 }
@@ -94,10 +93,10 @@
 
   void *OldAddr = Addr;
   Addr = 0;
-  MachineFunction::destruct (F);
-  runJITOnFunction (F);
+  MachineFunction::destruct(F);
+  runJITOnFunction(F);
   assert(Addr && "Code generation didn't add function to GlobalAddress table!");
-  TM.replaceMachineCodeForFunction (OldAddr, Addr);
+  TM.replaceMachineCodeForFunction(OldAddr, Addr);
   return Addr;
 }
 





More information about the llvm-commits mailing list