Replace large swaths of copy-n-paste code with obvious helper function...
authorDaniel Dunbar <daniel@zuster.org>
Wed, 15 Jul 2009 12:49:15 +0000 (12:49 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 15 Jul 2009 12:49:15 +0000 (12:49 +0000)
commitf3f4715ac1de3ae4c89eeb96f23d6cd4876cc323
treecc4028d64e8bc6c285708c808dfd768570457293
parent8cb6626df19ab54531717b419839c2a42d61f180
Replace large swaths of copy-n-paste code with obvious helper function...
 - Which was already present in the module!

 - I skipped this xform for Alpha, since it runs an extra pass during assembly
   emission, but not when emitting assembly via the DumpAsm flag.

 - No functionality change.

--
ddunbar@giles:llvm$ svn diff | grep '^- ' | sort | uniq -c
  18 -      PM.add(AsmPrinterCtor(ferrs(), *this, true));
  18 -    assert(AsmPrinterCtor && "AsmPrinter was not linked in");
  18 -    if (AsmPrinterCtor)
  18 -  if (DumpAsm) {
  18 -  }
ddunbar@giles:llvm$ svn diff | grep '^+ ' | sort | uniq -c
  18 +    addAssemblyEmitter(PM, OptLevel, true, ferrs());
  18 +  if (DumpAsm)
--

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75782 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMTargetMachine.cpp
lib/Target/PowerPC/PPCTargetMachine.cpp
lib/Target/X86/X86TargetMachine.cpp