diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-19 22:42:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-19 22:42:28 +0000 |
| commit | a918216872b12caa3613c08266cfd59a1849c7af (patch) | |
| tree | 8ea6af8d6d1776b8e40c0feed7d63c85f182ae57 /lib/Target/X86/X86MCAsmInfo.cpp | |
| parent | 01d211b53845ee5fbd6ec74d541e439b5c57dc7c (diff) | |
| download | external_llvm-a918216872b12caa3613c08266cfd59a1849c7af.zip external_llvm-a918216872b12caa3613c08266cfd59a1849c7af.tar.gz external_llvm-a918216872b12caa3613c08266cfd59a1849c7af.tar.bz2 | |
give MCAsmInfo a 'has little endian' bit. This is unfortunate, but
I really want clients of the streamer to be able to say "emit this
64-bit integer" and have it get broken down right by the streamer.
I may change this in the future, we'll see how it works out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86MCAsmInfo.cpp')
| -rw-r--r-- | lib/Target/X86/X86MCAsmInfo.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/Target/X86/X86MCAsmInfo.cpp b/lib/Target/X86/X86MCAsmInfo.cpp index 001ce80..bba36e8 100644 --- a/lib/Target/X86/X86MCAsmInfo.cpp +++ b/lib/Target/X86/X86MCAsmInfo.cpp @@ -43,7 +43,8 @@ static const char *const x86_asm_table[] = { "{cc}", "cc", 0,0}; -X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) { +X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) + : MCAsmInfoDarwin(true /*islittleendian*/) { AsmTransCBE = x86_asm_table; AssemblerDialect = AsmWriterFlavor; @@ -68,7 +69,8 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) { AbsoluteEHSectionOffsets = false; } -X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &Triple) { +X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &Triple) + : MCAsmInfo(true /*islittleendian*/) { AsmTransCBE = x86_asm_table; AssemblerDialect = AsmWriterFlavor; @@ -93,13 +95,15 @@ X86ELFMCAsmInfo::X86ELFMCAsmInfo(const Triple &Triple) { NonexecutableStackDirective = "\t.section\t.note.GNU-stack,\"\",@progbits"; } -X86MCAsmInfoCOFF::X86MCAsmInfoCOFF(const Triple &Triple) { +X86MCAsmInfoCOFF::X86MCAsmInfoCOFF(const Triple &Triple) + : MCAsmInfoCOFF(true /*islittleendian*/) { AsmTransCBE = x86_asm_table; AssemblerDialect = AsmWriterFlavor; } -X86WinMCAsmInfo::X86WinMCAsmInfo(const Triple &Triple) { +X86WinMCAsmInfo::X86WinMCAsmInfo(const Triple &Triple) + : MCAsmInfo(true /*islittleendian*/) { AsmTransCBE = x86_asm_table; AssemblerDialect = AsmWriterFlavor; |
