diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-09 23:48:29 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-09 23:48:29 +0000 |
commit | 1c952b9cc98e84b28f68f0f6cf11197263f89863 (patch) | |
tree | 10680a5a866de550f53f801df27d9192f02cae80 /include/llvm/MC/MCContext.h | |
parent | 29012319cd1a6dee716c3149ead614a8271f7338 (diff) | |
download | external_llvm-1c952b9cc98e84b28f68f0f6cf11197263f89863.zip external_llvm-1c952b9cc98e84b28f68f0f6cf11197263f89863.tar.gz external_llvm-1c952b9cc98e84b28f68f0f6cf11197263f89863.tar.bz2 |
Initial support for the cfi directives. This is just enough to get
f:
.cfi_startproc
nop
.cfi_endproc
assembled (on ELF).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCContext.h')
-rw-r--r-- | include/llvm/MC/MCContext.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/MC/MCContext.h b/include/llvm/MC/MCContext.h index 7968e1e..7b26d54 100644 --- a/include/llvm/MC/MCContext.h +++ b/include/llvm/MC/MCContext.h @@ -29,6 +29,7 @@ namespace llvm { class MCLineSection; class StringRef; class Twine; + class TargetAsmInfo; class MCSectionMachO; class MCSectionELF; @@ -42,6 +43,8 @@ namespace llvm { /// The MCAsmInfo for this target. const MCAsmInfo &MAI; + const TargetAsmInfo *TAI; + /// Symbols - Bindings of names to symbols. StringMap<MCSymbol*> Symbols; @@ -99,11 +102,13 @@ namespace llvm { MCSymbol *CreateSymbol(StringRef Name); public: - explicit MCContext(const MCAsmInfo &MAI); + explicit MCContext(const MCAsmInfo &MAI, const TargetAsmInfo *TAI); ~MCContext(); const MCAsmInfo &getAsmInfo() const { return MAI; } + const TargetAsmInfo &getTargetAsmInfo() const { return *TAI; } + /// @name Symbol Management /// @{ |