diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 12:49:15 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-07-15 12:49:15 +0000 |
commit | f3f4715ac1de3ae4c89eeb96f23d6cd4876cc323 (patch) | |
tree | cc4028d64e8bc6c285708c808dfd768570457293 /tools/llvm-db/Commands.cpp | |
parent | 8cb6626df19ab54531717b419839c2a42d61f180 (diff) |
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
Diffstat (limited to 'tools/llvm-db/Commands.cpp')
0 files changed, 0 insertions, 0 deletions