[llvm-commits] CVS: reopt/lib/TraceJIT/TraceJIT.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Thu Dec 2 22:02:13 PST 2004



Changes in directory reopt/lib/TraceJIT:

TraceJIT.cpp updated: 1.9 -> 1.10
---
Log message:

The other piece of the TraceJIT change...


---
Diffs of the changes:  (+5 -0)

Index: reopt/lib/TraceJIT/TraceJIT.cpp
diff -u reopt/lib/TraceJIT/TraceJIT.cpp:1.9 reopt/lib/TraceJIT/TraceJIT.cpp:1.10
--- reopt/lib/TraceJIT/TraceJIT.cpp:1.9	Mon Nov 29 16:52:36 2004
+++ reopt/lib/TraceJIT/TraceJIT.cpp	Fri Dec  3 00:02:01 2004
@@ -262,6 +262,11 @@
   TargetMachine *Target = ent->CtorFn(*MP->getModule(), IL);
   assert(Target && "Could not allocate target machine!");
 
+  // Make sure we can resolve symbols in the program as well. The zero arg 
+  // to the function tells DynamicLibrary to load the program, not a
+  // library.
+  sys::DynamicLibrary::LoadLibraryPermanently(0);
+
   // If the target supports TraceJIT code generation, return a new TraceJIT now.
   if (TargetJITInfo *TJ = Target->getJITInfo())
     return new TraceJIT(MP, *Target, *TJ);






More information about the llvm-commits mailing list