Fix some minor issues with r194282 to get the tree healthy again.
[oota-llvm.git] / lib / CodeGen / StackMaps.cpp
index b6a900ab495f6353fd039df94d246135214db3a8..51580b479d845ac325807e83d3f444d05d0e4ab3 100644 (file)
@@ -15,6 +15,7 @@
 #include "llvm/CodeGen/MachineInstr.h"
 #include "llvm/MC/MCContext.h"
 #include "llvm/MC/MCExpr.h"
+#include "llvm/MC/MCObjectFileInfo.h"
 #include "llvm/MC/MCSectionMachO.h"
 #include "llvm/MC/MCStreamer.h"
 #include "llvm/Support/Debug.h"
@@ -97,7 +98,7 @@ void StackMaps::serializeToStackMapSection() {
 
   // Create the section.
   const MCSection *StackMapSection =
-    OutContext.getObjectFileInfo().getStackMapSection();
+    OutContext.getObjectFileInfo()->getStackMapSection();
   AP.OutStreamer.SwitchSection(StackMapSection);
 
   // Emit a dummy symbol to force section inclusion.