Skip to content
Snippets Groups Projects
Commit e883ed28 authored by Simon Schuster's avatar Simon Schuster
Browse files

Fix compilation for lib/Target/ARM/ARMExport.cpp

parent 1278b253
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ namespace llvm {
B->MapsTo = yaml::Name(BB->getName());
// export loop information
MachineLoop *Loop = MLI.getLoopFor(BB);
MachineLoop *Loop = MLI.getLoopFor(&(*BB));
if (Loop && Loop->getHeader() == BB) {
exportLoopInfo(MF, YDoc, Loop);
errs() << "bar\n";
......@@ -150,15 +150,14 @@ namespace llvm {
IsBundled = false;
}
if (!doExportInstruction(Ins)) { Index++; continue; }
if (!doExportInstruction(&(*Ins))) { Index++; continue; }
yaml::MachineInstruction *I = B->addInstruction(
new yaml::MachineInstruction(Index++));
exportInstruction(MF, I, Ins, IsBundled);
exportInstruction(MF, I, &(*Ins), IsBundled);
const LLVMContext &Ctx = MF.getFunction()->getContext();
DebugLoc dl = Ins->getDebugLoc();
B->setSrcLocOnce(dl, dl.getScope(Ctx));
B->setSrcLocOnce(dl, dl.getScope());
IsBundled = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment