diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:52:20 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-11-28 19:52:20 +0000 |
commit | 3655de6873dfe68de050bb91a517a712246273f2 (patch) | |
tree | 022b4d33a36b032dbd32c6554806e289ce05220e | |
parent | 7fc4a94bdd5fb2933fecf27ca0cf377e1dc70cb0 (diff) |
Add per-target support for asm translation in the cbe
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31972 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetAsmInfo.h | 7 | ||||
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetAsmInfo.h b/include/llvm/Target/TargetAsmInfo.h index f4b755c8a3..2c695e9d73 100644 --- a/include/llvm/Target/TargetAsmInfo.h +++ b/include/llvm/Target/TargetAsmInfo.h @@ -275,6 +275,10 @@ namespace llvm { /// const char *DwarfMacInfoSection; // Defaults to ".debug_macinfo". + //===--- CBE Asm Translation Table -----------------------------------===// + + const char** AsmTransCBE; // Defaults to empty + public: TargetAsmInfo(); virtual ~TargetAsmInfo(); @@ -457,6 +461,9 @@ namespace llvm { const char *getDwarfMacInfoSection() const { return DwarfMacInfoSection; } + const char** getAsmCBE() const { + return AsmTransCBE; + } }; } diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp index d68affd96b..2b4f2f79c8 100644 --- a/lib/Target/TargetAsmInfo.cpp +++ b/lib/Target/TargetAsmInfo.cpp @@ -75,7 +75,8 @@ TargetAsmInfo::TargetAsmInfo() : DwarfLocSection(".debug_loc"), DwarfARangesSection(".debug_aranges"), DwarfRangesSection(".debug_ranges"), - DwarfMacInfoSection(".debug_macinfo") { + DwarfMacInfoSection(".debug_macinfo"), + AsmTransCBE(0) { } TargetAsmInfo::~TargetAsmInfo() { |