* LowercaseString moved to StringExtras.h
authorMisha Brukman <brukman+llvm@gmail.com>
Thu, 24 Jun 2004 23:38:20 +0000 (23:38 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Thu, 24 Jun 2004 23:38:20 +0000 (23:38 +0000)
* Wrap long line to 80 cols

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14382 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcAsmPrinter.cpp
lib/Target/SparcV8/SparcV8AsmPrinter.cpp

index 0ef3d84034cb066c89d79e88e819ed3cf76d4171..2e0785ce8b05c937ee463309a844da7614e354eb 100644 (file)
@@ -365,15 +365,6 @@ bool V8Printer::runOnMachineFunction(MachineFunction &MF) {
   return false;
 }
 
-
-std::string LowercaseString (const std::string &S) {
-  std::string result (S);
-  for (unsigned i = 0; i < S.length(); ++i) 
-    if (isupper (result[i]))
-      result[i] = tolower(result[i]);
-  return result;
-}
-
 void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
   const MachineOperand &MO = MI->getOperand (opNum);
   const MRegisterInfo &RI = *TM.getRegisterInfo();
@@ -381,7 +372,8 @@ void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
   if (MI->getOpcode() == V8::SETHIi && !MO.isRegister() && !MO.isImmediate()) {
     O << "%hi(";
     CloseParen = true;
-  } else if (MI->getOpcode() ==V8::ORri &&!MO.isRegister() &&!MO.isImmediate()) {
+  } else if (MI->getOpcode() ==V8::ORri &&!MO.isRegister() &&!MO.isImmediate())
+  {
     O << "%lo(";
     CloseParen = true;
   }
index 0ef3d84034cb066c89d79e88e819ed3cf76d4171..2e0785ce8b05c937ee463309a844da7614e354eb 100644 (file)
@@ -365,15 +365,6 @@ bool V8Printer::runOnMachineFunction(MachineFunction &MF) {
   return false;
 }
 
-
-std::string LowercaseString (const std::string &S) {
-  std::string result (S);
-  for (unsigned i = 0; i < S.length(); ++i) 
-    if (isupper (result[i]))
-      result[i] = tolower(result[i]);
-  return result;
-}
-
 void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
   const MachineOperand &MO = MI->getOperand (opNum);
   const MRegisterInfo &RI = *TM.getRegisterInfo();
@@ -381,7 +372,8 @@ void V8Printer::printOperand(const MachineInstr *MI, int opNum) {
   if (MI->getOpcode() == V8::SETHIi && !MO.isRegister() && !MO.isImmediate()) {
     O << "%hi(";
     CloseParen = true;
-  } else if (MI->getOpcode() ==V8::ORri &&!MO.isRegister() &&!MO.isImmediate()) {
+  } else if (MI->getOpcode() ==V8::ORri &&!MO.isRegister() &&!MO.isImmediate())
+  {
     O << "%lo(";
     CloseParen = true;
   }