aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86CodeEmitter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-02-18 00:57:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-02-18 00:57:10 +0000
commit5e8b5558f7939cde1f6de2e18d7616903e86e7eb (patch)
tree37b43841ae143b5eb064773b796757a01cee484b /lib/Target/X86/X86CodeEmitter.cpp
parent25cae0fd1ca1be2dc4b10864e0f7c8fc86ecd51d (diff)
downloadexternal_llvm-5e8b5558f7939cde1f6de2e18d7616903e86e7eb.zip
external_llvm-5e8b5558f7939cde1f6de2e18d7616903e86e7eb.tar.gz
external_llvm-5e8b5558f7939cde1f6de2e18d7616903e86e7eb.tar.bz2
Jit does not support PIC yet.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86CodeEmitter.cpp')
-rw-r--r--lib/Target/X86/X86CodeEmitter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp
index 5208f52..0c0ed53 100644
--- a/lib/Target/X86/X86CodeEmitter.cpp
+++ b/lib/Target/X86/X86CodeEmitter.cpp
@@ -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;