llvm.org GIT mirror llvm / d226ed7
llvm-objdump: Take ownership of MCInstrInfos. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141535 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 8 years ago
2 changed file(s) with 2 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
283283 // GetTarget prints out stuff.
284284 return;
285285 }
286 const MCInstrInfo *InstrInfo = TheTarget->createMCInstrInfo();
286 OwningPtr InstrInfo(TheTarget->createMCInstrInfo());
287287 OwningPtr
288 InstrAnalysis(TheTarget->createMCInstrAnalysis(InstrInfo));
288 InstrAnalysis(TheTarget->createMCInstrAnalysis(InstrInfo.get()));
289289
290290 // Set up disassembler.
291291 OwningPtr AsmInfo(TheTarget->createMCAsmInfo(TripleName));
2323 #include "llvm/MC/MCDisassembler.h"
2424 #include "llvm/MC/MCInst.h"
2525 #include "llvm/MC/MCInstPrinter.h"
26 #include "llvm/MC/MCInstrAnalysis.h"
27 #include "llvm/MC/MCInstrDesc.h"
28 #include "llvm/MC/MCInstrInfo.h"
2926 #include "llvm/MC/MCSubtargetInfo.h"
3027 #include "llvm/Support/Casting.h"
3128 #include "llvm/Support/CommandLine.h"
142139 // GetTarget prints out stuff.
143140 return;
144141 }
145 const MCInstrInfo *InstrInfo = TheTarget->createMCInstrInfo();
146 OwningPtr
147 InstrAnalysis(TheTarget->createMCInstrAnalysis(InstrInfo));
148142
149143 outs() << '\n';
150144 outs() << Obj->getFileName()