Move bundle info from MCSectionData to MCSection.
[oota-llvm.git] / lib / MC / MCObjectStreamer.cpp
index 3f32a36194f77c9f3480fbfd173809ae54e9e4de..b244c3a679c1995dd0686f9f67a8cbd4f961b6cd 100644 (file)
@@ -254,7 +254,7 @@ void MCObjectStreamer::EmitInstruction(const MCInst &Inst,
   //   group. We want to emit all such instructions into the same data
   //   fragment.
   if (Assembler.getRelaxAll() ||
-      (Assembler.isBundlingEnabled() && SD->isBundleLocked())) {
+      (Assembler.isBundlingEnabled() && SD->getSection().isBundleLocked())) {
     MCInst Relaxed;
     getAssembler().getBackend().relaxInstruction(Inst, Relaxed);
     while (getAssembler().getBackend().mayNeedRelaxation(Relaxed))