Revert "Centralize the information about which object format we are using."
[oota-llvm.git] / include / llvm / MC / MCObjectFileInfo.h
index 571189790d296b35bde1bdb9ec097474ef33ffc1..b9cea06161d0df16839d48a971b01b00bfc240f3 100644 (file)
@@ -331,9 +331,13 @@ public:
     return EHFrameSection;
   }
 
+  enum Environment { IsMachO, IsELF, IsCOFF };
+  Environment getObjectFileType() const { return Env; }
+
   Reloc::Model getRelocM() const { return RelocM; }
 
 private:
+  Environment Env;
   Reloc::Model RelocM;
   CodeModel::Model CMModel;
   MCContext *Ctx;