[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp
Chris Lattner
lattner at persephone.cs.uiuc.edu
Thu Nov 4 20:51:15 PST 2004
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.68 -> 1.69
---
Log message:
Quiet VC++ warnings
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.68 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.69
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.68 Mon Oct 18 10:54:17 2004
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Thu Nov 4 22:50:59 2004
@@ -61,11 +61,11 @@
void *X86JITInfo::getJITStubForFunction(Function *F, MachineCodeEmitter &MCE) {
- return (void*)((unsigned long)getResolver(MCE).getLazyResolver(F));
+ return (void*)(intptr_t)getResolver(MCE).getLazyResolver(F);
}
void X86JITInfo::replaceMachineCodeForFunction (void *Old, void *New) {
- char *OldByte = (char *) Old;
+ unsigned char *OldByte = (char *) Old;
*OldByte++ = 0xE9; // Emit JMP opcode.
int32_t *OldWord = (int32_t *) OldByte;
int32_t NewAddr = (intptr_t) New;
More information about the llvm-commits
mailing list