aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-13 17:18:51 +0000
committerChris Lattner <sabre@nondot.org>2004-04-13 17:18:51 +0000
commite47f4ff9f60e786e34c6d625ad8e682de66680c5 (patch)
treeeeef812735d9bece8175049ff0fc8847270e242d /lib
parent266538350a1a478b5fe053bfda42c0d03e371570 (diff)
downloadexternal_llvm-e47f4ff9f60e786e34c6d625ad8e682de66680c5.zip
external_llvm-e47f4ff9f60e786e34c6d625ad8e682de66680c5.tar.gz
external_llvm-e47f4ff9f60e786e34c6d625ad8e682de66680c5.tar.bz2
Add support for new instruction type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12894 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 29607da..709455c 100644
--- a/lib/Target/X86/X86CodeEmitter.cpp
+++ b/lib/Target/X86/X86CodeEmitter.cpp
@@ -537,6 +537,8 @@ void Emitter::emitInstruction(const MachineInstr &MI) {
unsigned Address = MCE.getGlobalValueAddress(MO.getSymbolName());
assert(Address && "Unknown external symbol!");
emitMaybePCRelativeValue(Address, MO.isPCRelative());
+ } else if (MO.isImmediate()) {
+ emitConstant(MO.getImmedValue(), sizeOfImm(Desc));
} else {
assert(0 && "Unknown RawFrm operand!");
}