Thumb2 assembly parsing and encoding for SASX.
[oota-llvm.git] / lib / Target / CppBackend / CPPTargetMachine.h
index c7c8a7e04a4723b58bebae28eb9398b611bdf6d6..287e53727139f5d935ea896a7416885b46e683e2 100644 (file)
@@ -22,19 +22,18 @@ namespace llvm {
 class formatted_raw_ostream;
 
 struct CPPTargetMachine : public TargetMachine {
-  const TargetData DataLayout;       // Calculates type size & alignment
-
-  CPPTargetMachine(const Target &T, const Module &M,
-                   const std::string &FS)
-    : TargetMachine(T), DataLayout(&M) {}
-
-  virtual bool WantsWholeFile() const { return true; }
-  virtual bool addPassesToEmitWholeFile(PassManager &PM,
-                                        formatted_raw_ostream &Out,
-                                        CodeGenFileType FileType,
-                                        CodeGenOpt::Level OptLevel);
-
-  virtual const TargetData *getTargetData() const { return &DataLayout; }
+  CPPTargetMachine(const Target &T, StringRef TT,
+                   StringRef CPU, StringRef FS,
+                   Reloc::Model RM, CodeModel::Model CM)
+    : TargetMachine(T, TT, CPU, FS) {}
+
+  virtual bool addPassesToEmitFile(PassManagerBase &PM,
+                                   formatted_raw_ostream &Out,
+                                   CodeGenFileType FileType,
+                                   CodeGenOpt::Level OptLevel,
+                                   bool DisableVerify);
+
+  virtual const TargetData *getTargetData() const { return 0; }
 };
 
 extern Target TheCppBackendTarget;