There is no reason to emit function stubs for direct calls.
authorChris Lattner <sabre@nondot.org>
Sun, 21 Nov 2004 03:46:06 +0000 (03:46 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 21 Nov 2004 03:46:06 +0000 (03:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18082 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86CodeEmitter.cpp
lib/Target/X86/X86JITInfo.cpp

index 6d0a211a79ba44bbc122c3ad0e14d5ce99ce8968..a71a286bce19a5490dee3907fc0073921c5a4b13 100644 (file)
@@ -141,7 +141,7 @@ void Emitter::emitPCRelativeBlockAddress(const MachineBasicBlock *MBB) {
 ///
 void Emitter::emitGlobalAddressForCall(GlobalValue *GV) {
   MCE.addRelocation(MachineRelocation(MCE.getCurrentPCOffset(),
-                                      X86::reloc_pcrel_word, GV));
+                                      X86::reloc_pcrel_word, GV, 0, true));
   MCE.emitWord(0);
 }
 
index a976d232f5b539f2614ac5d8c015bb55cf3d822b..4696b6541bd05e77dbd0b51b0275b2fe55c96879 100644 (file)
@@ -137,4 +137,3 @@ void X86JITInfo::relocate(void *Function, MachineRelocation *MR,
     }
   }
 }
-