mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-04 10:59:04 +00:00
Jit does not support PIC yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
25cae0fd1c
commit
5e8b5558f7
@ -22,6 +22,7 @@
|
||||
#include "llvm/CodeGen/Passes.h"
|
||||
#include "llvm/Function.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/Target/TargetOptions.h"
|
||||
#include <iostream>
|
||||
using namespace llvm;
|
||||
|
||||
@ -96,6 +97,7 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
|
||||
}
|
||||
|
||||
void Emitter::emitBasicBlock(const MachineBasicBlock &MBB) {
|
||||
assert(!PICEnabled && "CodeEmitter does not support PIC!");
|
||||
if (uint64_t Addr = MCE.getCurrentPCValue())
|
||||
BasicBlockAddrs[&MBB] = Addr;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user