diff options
author | Akira Hatanaka <ahatanak@gmail.com> | 2011-04-15 21:51:11 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanak@gmail.com> | 2011-04-15 21:51:11 +0000 |
commit | 4552c9a3b34ad9b2085635266348d0d9b95514a6 (patch) | |
tree | d7e5b6178d0738dff93e314e346515728077158f /lib/Target/Mips/MipsAsmPrinter.cpp | |
parent | 0cb11ac32fc09c5db42fb801db242ac9fb51f6b1 (diff) | |
download | external_llvm-4552c9a3b34ad9b2085635266348d0d9b95514a6.tar.gz external_llvm-4552c9a3b34ad9b2085635266348d0d9b95514a6.tar.bz2 external_llvm-4552c9a3b34ad9b2085635266348d0d9b95514a6.zip |
Reverse unnecessary changes made in r129606 and r129608. There is no change in functionality.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129612 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsAsmPrinter.cpp')
-rw-r--r-- | lib/Target/Mips/MipsAsmPrinter.cpp | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/lib/Target/Mips/MipsAsmPrinter.cpp b/lib/Target/Mips/MipsAsmPrinter.cpp index 6db64a504b..502f744e4d 100644 --- a/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/lib/Target/Mips/MipsAsmPrinter.cpp @@ -1,16 +1,16 @@ -//===-- MipsAsmPrinter.cpp - Mips LLVM assembly writer -------------------===// +//===-- MipsAsmPrinter.cpp - Mips LLVM assembly writer --------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// // // This file contains a printer that converts from our internal representation // of machine-dependent LLVM code to GAS-format MIPS assembly language. // -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// #define DEBUG_TYPE "mips-asm-printer" #include "Mips.h" @@ -68,8 +68,7 @@ namespace { const char *getCurrentABIString() const; void emitFrameDirective(); - void printInstruction(const MachineInstr *MI, - raw_ostream &O); // autogen'd. + void printInstruction(const MachineInstr *MI, raw_ostream &O); // autogen'd. void EmitInstruction(const MachineInstr *MI) { SmallString<128> Str; raw_svector_ostream OS(Str); @@ -78,8 +77,8 @@ namespace { } virtual void EmitFunctionBodyStart(); virtual void EmitFunctionBodyEnd(); - virtual bool isBlockOnlyReachableByFallthrough(const MachineBasicBlock - *MBB) const; + virtual bool isBlockOnlyReachableByFallthrough(const MachineBasicBlock* + MBB) const; static const char *getRegisterName(unsigned RegNo); virtual void EmitFunctionEntryLabel(); @@ -89,7 +88,7 @@ namespace { #include "MipsGenAsmWriter.inc" -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// // // Mips Asm Directives // @@ -118,11 +117,11 @@ namespace { // stack pointer subtration, the first register in the mask (RA) will be // saved at address 48-8=40. // -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// // Mask directives -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// // Create a bitmask with all callee saved registers for CPU or Floating Point // registers. For CPU registers consider RA, GP and FP for saving if necessary. @@ -174,9 +173,9 @@ void MipsAsmPrinter::printHex32(unsigned Value, raw_ostream &O) { O << utohexstr((Value & (0xF << (i*4))) >> (i*4)); } -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// // Frame and Set directives -//===---------------------------------------------------------------------===// +//===----------------------------------------------------------------------===// /// Frame Directive void MipsAsmPrinter::emitFrameDirective() { @@ -238,8 +237,8 @@ void MipsAsmPrinter::EmitFunctionBodyEnd() { /// isBlockOnlyReachableByFallthough - Return true if the basic block has /// exactly one predecessor and the control transfer mechanism between /// the predecessor and this block is a fall-through. -bool MipsAsmPrinter::isBlockOnlyReachableByFallthrough(const MachineBasicBlock - *MBB) const { +bool MipsAsmPrinter::isBlockOnlyReachableByFallthrough(const MachineBasicBlock* + MBB) const { // The predecessor has to be immediately before this block. const MachineBasicBlock *Pred = *MBB->pred_begin(); @@ -392,8 +391,7 @@ void MipsAsmPrinter::EmitStartOfAsmFile(Module &M) { // FIXME: Use SwitchSection. // Tell the assembler which ABI we are using - OutStreamer.EmitRawText("\t.section .mdebug." + - Twine(getCurrentABIString())); + OutStreamer.EmitRawText("\t.section .mdebug." + Twine(getCurrentABIString())); // TODO: handle O64 ABI if (Subtarget->isABI_EABI()) { |