[llvm-commits] [llvm] r101686 - /llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp

Bill Wendling isanbard at gmail.com
Sat Apr 17 17:56:05 PDT 2010


Author: void
Date: Sat Apr 17 19:56:05 2010
New Revision: 101686

URL: http://llvm.org/viewvc/llvm-project?rev=101686&view=rev
Log:
Don't rely upon the MCSymbol "isDefined" method to indicate if a label has been
emitted or not. The JIT doesn't set that. Look it up in the label location table
instead.

Modified:
    llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp

Modified: llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp?rev=101686&r1=101685&r2=101686&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/JIT/JITDwarfEmitter.cpp Sat Apr 17 19:56:05 2010
@@ -75,7 +75,7 @@
     MCSymbol *Label = Move.getLabel();
     
     // Throw out move if the label is invalid.
-    if (Label && !Label->isDefined())
+    if (Label && (*JCE->getLabelLocations())[Label] == 0)
       continue;
     
     intptr_t LabelPtr = 0;
@@ -711,7 +711,7 @@
     MCSymbol *Label = Move.getLabel();
     
     // Throw out move if the label is invalid.
-    if (Label && !Label->isDefined())
+    if (Label && (*JCE->getLabelLocations())[Label] == 0)
       continue;
     
     intptr_t LabelPtr = 0;





More information about the llvm-commits mailing list