[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue May 2 10:16:32 PDT 2006



Changes in directory llvm/lib/Target/X86:

X86CodeEmitter.cpp updated: 1.94 -> 1.95
---
Log message:

There is no reason to use a virtual method to store this word.


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

 X86CodeEmitter.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.94 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.95
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.94	Sat Apr 22 13:53:45 2006
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp	Tue May  2 12:16:20 2006
@@ -89,11 +89,11 @@
   MCE.emitJumpTableInfo(MF.getJumpTableInfo(), BasicBlockAddrs);
   MCE.finishFunction(MF);
 
-  // Resolve all forward branches now...
+  // Resolve all forward branches now.
   for (unsigned i = 0, e = BBRefs.size(); i != e; ++i) {
     unsigned Location = BasicBlockAddrs[BBRefs[i].first];
     unsigned Ref = BBRefs[i].second;
-    MCE.emitWordAt(Location-Ref-4, (unsigned*)(intptr_t)Ref);
+    *((unsigned*)(intptr_t)Ref) = Location-Ref-4;
   }
   BBRefs.clear();
   BasicBlockAddrs.clear();






More information about the llvm-commits mailing list