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

Brian Gaeke gaeke at cs.uiuc.edu
Tue Jun 8 13:55:07 PDT 2004


Changes in directory reopt/lib/TraceJIT:

TraceJITEmitter.cpp updated: 1.1 -> 1.2

---
Log message:

Only bother calling GetAddressOfSymbol() on external functions.


---
Diffs of the changes:  (+1 -1)

Index: reopt/lib/TraceJIT/TraceJITEmitter.cpp
diff -u reopt/lib/TraceJIT/TraceJITEmitter.cpp:1.1 reopt/lib/TraceJIT/TraceJITEmitter.cpp:1.2
--- reopt/lib/TraceJIT/TraceJITEmitter.cpp:1.1	Wed May 26 16:25:13 2004
+++ reopt/lib/TraceJIT/TraceJITEmitter.cpp	Tue Jun  8 13:53:58 2004
@@ -175,7 +175,7 @@
   // Try looking up the function to see if it is already compiled, if not return
   // 0.
   if (isa<Function>(V)) {
-    if (V->hasName ()) {
+    if (V->hasExternalLinkage () && V->hasName ()) {
       uint64_t where = (uint64_t) GetAddressOfSymbol (V->getName ());
       if (where)
         return where;





More information about the llvm-commits mailing list