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 /include/llvm/MC/MCAsmInfo.h | |
parent | 26a92003cd88355f5b027a2703b5016bb4b7870d (diff) | |
download | llvm-bd27f5adbd8f3b8ab8def5aa43fbc406ac9b8cbe.tar.gz llvm-bd27f5adbd8f3b8ab8def5aa43fbc406ac9b8cbe.tar.bz2 llvm-bd27f5adbd8f3b8ab8def5aa43fbc406ac9b8cbe.tar.xz |
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 'include/llvm/MC/MCAsmInfo.h')
-rw-r--r-- | include/llvm/MC/MCAsmInfo.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/llvm/MC/MCAsmInfo.h b/include/llvm/MC/MCAsmInfo.h index f9486de463..b8a0e02394 100644 --- a/include/llvm/MC/MCAsmInfo.h +++ b/include/llvm/MC/MCAsmInfo.h @@ -117,6 +117,13 @@ namespace llvm { const char *InlineAsmStart; // Defaults to "#APP\n" const char *InlineAsmEnd; // Defaults to "#NO_APP\n" + /// Code16Directive, Code32Directive, Code64Directive - These are assembly + /// directives that tells the assembler to interpret the following + /// instructions differently. + const char *Code16Directive; // Defaults to ".code16" + const char *Code32Directive; // Defaults to ".code32" + const char *Code64Directive; // Defaults to ".code64" + /// AssemblerDialect - Which dialect of an assembler variant to use. unsigned AssemblerDialect; // Defaults to 0 @@ -423,6 +430,15 @@ namespace llvm { const char *getInlineAsmEnd() const { return InlineAsmEnd; } + const char *getCode16Directive() const { + return Code16Directive; + } + const char *getCode32Directive() const { + return Code32Directive; + } + const char *getCode64Directive() const { + return Code64Directive; + } unsigned getAssemblerDialect() const { return AssemblerDialect; } |