forked from OSchip/llvm-project
parent
8e44ff50b0
commit
5caed8a231
|
@ -22,6 +22,7 @@
|
||||||
#include "llvm/CodeGen/Passes.h"
|
#include "llvm/CodeGen/Passes.h"
|
||||||
#include "llvm/Function.h"
|
#include "llvm/Function.h"
|
||||||
#include "llvm/ADT/Statistic.h"
|
#include "llvm/ADT/Statistic.h"
|
||||||
|
#include "llvm/Target/TargetOptions.h"
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
|
@ -96,6 +97,7 @@ bool Emitter::runOnMachineFunction(MachineFunction &MF) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Emitter::emitBasicBlock(const MachineBasicBlock &MBB) {
|
void Emitter::emitBasicBlock(const MachineBasicBlock &MBB) {
|
||||||
|
assert(!PICEnabled && "CodeEmitter does not support PIC!");
|
||||||
if (uint64_t Addr = MCE.getCurrentPCValue())
|
if (uint64_t Addr = MCE.getCurrentPCValue())
|
||||||
BasicBlockAddrs[&MBB] = Addr;
|
BasicBlockAddrs[&MBB] = Addr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue