diff options
author | Evan Cheng <evan.cheng@apple.com> | 2011-07-27 00:38:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2011-07-27 00:38:12 +0000 |
commit | bd27f5adbd8f3b8ab8def5aa43fbc406ac9b8cbe (patch) | |
tree | 5eff6674f6183d2f5cd829ee12e09b8c4051747e /lib/MC/MCAsmInfo.cpp | |
parent | 26a92003cd88355f5b027a2703b5016bb4b7870d (diff) |
Support .code32 and .code64 in X86 assembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136197 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAsmInfo.cpp')
-rw-r--r-- | lib/MC/MCAsmInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MC/MCAsmInfo.cpp b/lib/MC/MCAsmInfo.cpp index 502b60b0ed..015ccd4124 100644 --- a/lib/MC/MCAsmInfo.cpp +++ b/lib/MC/MCAsmInfo.cpp @@ -42,6 +42,9 @@ MCAsmInfo::MCAsmInfo() { LinkerPrivateGlobalPrefix = ""; InlineAsmStart = "APP"; InlineAsmEnd = "NO_APP"; + Code16Directive = ".code16"; + Code32Directive = ".code32"; + Code64Directive = ".code64"; AssemblerDialect = 0; AllowQuotesInName = false; AllowNameToStartWithDigit = false; |