diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:52:49 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:52:49 +0000 |
commit | 6c0695fc5c0d9a7768933dea1b061ef5c8c5117f (patch) | |
tree | 25047f31bf5e7136b3c6c828188f6ba5ef989176 /lib | |
parent | 3655de6873dfe68de050bb91a517a712246273f2 (diff) |
X86 asm -> gcc asm translation table (incomplete)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31973 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86TargetAsmInfo.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index 229473c89c..ed813db245 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -14,14 +14,31 @@ #include "X86TargetAsmInfo.h" #include "X86TargetMachine.h" #include "X86Subtarget.h" +#include <iostream> using namespace llvm; +static const char* x86_asm_table[] = {"{si}", "S", + "{di}", "D", + "{ax}", "a", + "{cx}", "c", + "q", "q", + "r", "r", + "m", "m", + "{memory}", "memory", + "{flags}", "", + "{dirflag}", "", + "{fpsr}", "", + "{cc}", "cc", + 0,0}; + X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) { const X86Subtarget *Subtarget = &TM.getSubtarget<X86Subtarget>(); // FIXME - Should be simplified. - + + AsmTransCBE = x86_asm_table; + switch (Subtarget->TargetType) { case X86Subtarget::isDarwin: AlignmentIsInBytes = false; |