diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-22 20:58:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-22 20:58:17 +0000 |
commit | 82d748d55c549dd055528ed10dbb534618ca8115 (patch) | |
tree | a0e8cf4ac48a24458e50bc3233fddd98bb46f1a6 /lib/Target/TargetAsmInfo.cpp | |
parent | e4d110be70089f68f0e70e6ce0637323ad77eaf5 (diff) | |
download | external_llvm-82d748d55c549dd055528ed10dbb534618ca8115.zip external_llvm-82d748d55c549dd055528ed10dbb534618ca8115.tar.gz external_llvm-82d748d55c549dd055528ed10dbb534618ca8115.tar.bz2 |
move the MCAsmInfo .cpp/.h files into the right
directories and rename them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetAsmInfo.cpp')
-rw-r--r-- | lib/Target/TargetAsmInfo.cpp | 113 |
1 files changed, 0 insertions, 113 deletions
diff --git a/lib/Target/TargetAsmInfo.cpp b/lib/Target/TargetAsmInfo.cpp deleted file mode 100644 index c38bf70..0000000 --- a/lib/Target/TargetAsmInfo.cpp +++ /dev/null @@ -1,113 +0,0 @@ -//===-- MCAsmInfo.cpp - Asm Info -------------------------------------------==// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This file defines target asm properties related what form asm statements -// should take. -// -//===----------------------------------------------------------------------===// - -#include "llvm/MC/MCAsmInfo.h" -#include <cctype> -#include <cstring> -using namespace llvm; - -MCAsmInfo::MCAsmInfo() { - ZeroFillDirective = 0; - NonexecutableStackDirective = 0; - NeedsSet = false; - MaxInstLength = 4; - PCSymbol = "$"; - SeparatorChar = ';'; - CommentColumn = 60; - CommentString = "#"; - GlobalPrefix = ""; - PrivateGlobalPrefix = "."; - LinkerPrivateGlobalPrefix = ""; - JumpTableSpecialLabelPrefix = 0; - GlobalVarAddrPrefix = ""; - GlobalVarAddrSuffix = ""; - FunctionAddrPrefix = ""; - FunctionAddrSuffix = ""; - PersonalityPrefix = ""; - PersonalitySuffix = ""; - NeedsIndirectEncoding = false; - InlineAsmStart = "APP"; - InlineAsmEnd = "NO_APP"; - AssemblerDialect = 0; - AllowQuotesInName = false; - ZeroDirective = "\t.zero\t"; - ZeroDirectiveSuffix = 0; - AsciiDirective = "\t.ascii\t"; - AscizDirective = "\t.asciz\t"; - Data8bitsDirective = "\t.byte\t"; - Data16bitsDirective = "\t.short\t"; - Data32bitsDirective = "\t.long\t"; - Data64bitsDirective = "\t.quad\t"; - SunStyleELFSectionSwitchSyntax = false; - UsesELFSectionDirectiveForBSS = false; - AlignDirective = "\t.align\t"; - AlignmentIsInBytes = true; - TextAlignFillValue = 0; - JumpTableDirective = 0; - PICJumpTableDirective = 0; - GlobalDirective = "\t.globl\t"; - SetDirective = 0; - LCOMMDirective = 0; - COMMDirective = "\t.comm\t"; - COMMDirectiveTakesAlignment = true; - HasDotTypeDotSizeDirective = true; - HasSingleParameterDotFile = true; - UsedDirective = 0; - WeakRefDirective = 0; - WeakDefDirective = 0; - // FIXME: These are ELFish - move to ELFTAI. - HiddenDirective = "\t.hidden\t"; - ProtectedDirective = "\t.protected\t"; - AbsoluteDebugSectionOffsets = false; - AbsoluteEHSectionOffsets = false; - HasLEB128 = false; - HasDotLocAndDotFile = false; - SupportsDebugInformation = false; - ExceptionsType = ExceptionHandling::None; - DwarfRequiresFrameSection = true; - DwarfUsesInlineInfoSection = false; - Is_EHSymbolPrivate = true; - GlobalEHDirective = 0; - SupportsWeakOmittedEHFrame = true; - DwarfSectionOffsetDirective = 0; - - AsmTransCBE = 0; -} - -MCAsmInfo::~MCAsmInfo() { -} - - -unsigned MCAsmInfo::getULEB128Size(unsigned Value) { - unsigned Size = 0; - do { - Value >>= 7; - Size += sizeof(int8_t); - } while (Value); - return Size; -} - -unsigned MCAsmInfo::getSLEB128Size(int Value) { - unsigned Size = 0; - int Sign = Value >> (8 * sizeof(Value) - 1); - bool IsMore; - - do { - unsigned Byte = Value & 0x7f; - Value >>= 7; - IsMore = Value != Sign || ((Byte ^ Sign) & 0x40) != 0; - Size += sizeof(int8_t); - } while (IsMore); - return Size; -} |