Sink getDwarfRegNum, getLLVMRegNum, getSEHRegNum from TargetRegisterInfo down
[oota-llvm.git] / lib / Target / Mips / MipsTargetObjectFile.cpp
index de05fc400a36fe59936ce620bb835540ce6817b7..05c46f5c97a5ca21eb9855995a950ec1a25aa89d 100644 (file)
@@ -1,11 +1,11 @@
-//===-- MipsTargetObjectFile.cpp - Mips object files ---------------------===//
+//===-- MipsTargetObjectFile.cpp - Mips object files ----------------------===//
 //
 //                     The LLVM Compiler Infrastructure
 //
 // This file is distributed under the University of Illinois Open Source
 // License. See LICENSE.TXT for details.
 //
-//===---------------------------------------------------------------------===//
+//===----------------------------------------------------------------------===//
 
 #include "MipsTargetObjectFile.h"
 #include "MipsSubtarget.h"
@@ -47,8 +47,7 @@ static bool IsInSmallSection(uint64_t Size) {
 }
 
 bool MipsTargetObjectFile::IsGlobalInSmallSection(const GlobalValue *GV,
-                                                  const TargetMachine &TM)
-  const {
+                                                const TargetMachine &TM) const {
   if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage())
     return false;
 
@@ -80,7 +79,7 @@ IsGlobalInSmallSection(const GlobalValue *GV, const TargetMachine &TM,
   if (Kind.isMergeable1ByteCString())
     return false;
 
-  const Type *Ty = GV->getType()->getElementType();
+  Type *Ty = GV->getType()->getElementType();
   return IsInSmallSection(TM.getTargetData()->getTypeAllocSize(Ty));
 }
 
@@ -99,6 +98,5 @@ SelectSectionForGlobal(const GlobalValue *GV, SectionKind Kind,
     return SmallDataSection;
 
   // Otherwise, we work the same as ELF.
-  return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang,
-                                                             TM);
+  return TargetLoweringObjectFileELF::SelectSectionForGlobal(GV, Kind, Mang,TM);
 }